Class EncryptionStatus


  • public final class EncryptionStatus
    extends java.lang.Object
    Informationen über den Verschlüsselungsstatus einer Verbindung
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static EncryptionStatus encrypted​(java.lang.String cipherName)
      Erstellt eine neue Instanz für eine verschlüsselte Verbindung
      boolean equals​(java.lang.Object o)  
      java.lang.String getCipher()
      Gibt den Verschlüsselungsalgorithmus zurück
      int hashCode()  
      boolean isEncrypted()
      Gibt true zurück, wenn die Verbindung verschlüsselt ist
      static EncryptionStatus notEncrypted()
      Erstellt eine neue Instanz für eine nicht verschlüsselte Verbindung
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • notEncrypted

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

        public static EncryptionStatus encrypted​(java.lang.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 java.lang.String getCipher()
        Gibt den Verschlüsselungsalgorithmus zurück
        Returns:
        den Verschlüsselungsalgorithmus oder einen Leerstring falls nicht verschlüsselt
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object