public class EncryptionStatus
extends java.lang.Object
Informationen über den Verschlüsselungsstatus einer Verbindung
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
_cipher |
private boolean |
_isEncrypted |
Modifier | Constructor and Description |
---|---|
private |
EncryptionStatus(boolean isEncrypted,
java.lang.String cipher)
Erstellt eine neue Instanz
|
Modifier and Type | Method and 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() |
private final boolean _isEncrypted
private final java.lang.String _cipher
private EncryptionStatus(boolean isEncrypted, java.lang.String cipher)
Erstellt eine neue Instanz
isEncrypted
- Ist die Verbindung verschlüsselt?cipher
- Verwendete Verschlüsselungpublic static EncryptionStatus notEncrypted()
Erstellt eine neue Instanz für eine nicht verschlüsselte Verbindung
public static EncryptionStatus encrypted(java.lang.String cipherName)
Erstellt eine neue Instanz für eine verschlüsselte Verbindung
cipherName
- Verwendeter Verschlüsselungsalgorithmuspublic boolean isEncrypted()
Gibt true zurück, wenn die Verbindung verschlüsselt ist
public java.lang.String getCipher()
Gibt den Verschlüsselungsalgorithmus zurück
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object