Class EncryptionStatus

java.lang.Object
de.bsvrz.dav.daf.main.EncryptionStatus

public final class EncryptionStatus extends Object
Informationen über den Verschlüsselungsstatus einer Verbindung
  • Method Details

    • notEncrypted

      public static EncryptionStatus notEncrypted()
      Erstellt eine neue Instanz für eine nicht verschlüsselte Verbindung
      Returns:
      Instanz
    • encrypted

      public static EncryptionStatus encrypted(String cipherName)
      Erstellt eine neue Instanz für eine verschlüsselte Verbindung
      Parameters:
      cipherName - Verwendeter Verschlüsselungsalgorithmus
      Returns:
      Instanz
    • isEncrypted

      public boolean isEncrypted()
      Gibt true zurück, wenn die Verbindung verschlüsselt ist
      Returns:
      true, wenn die Verbindung verschlüsselt ist, sonst false
    • getCipher

      public String getCipher()
      Gibt den Verschlüsselungsalgorithmus zurück
      Returns:
      den Verschlüsselungsalgorithmus oder einen Leerstring falls nicht verschlüsselt
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object