Interface CryptSessionConfig
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface CryptSessionConfig extends java.lang.AutoCloseableInterface for the encryption/decryption session config for wire protocol encryption for a specific plugin.- Since:
- 5
- Author:
- Mark Rotteveel
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Clears (e.g.byte[]getDecryptKey()EncryptionIdentifiergetEncryptionIdentifier()byte[]getEncryptKey()byte[]getSpecificData()static CryptSessionConfigsymmetric(EncryptionIdentifier encryptionIdentifier, byte[] sessionKey, byte[] specificData)Creates a crypt session config for a type symmetric plugin.
-
-
-
Method Detail
-
getEncryptionIdentifier
EncryptionIdentifier getEncryptionIdentifier()
- Returns:
- Encryption identifier
-
getEncryptKey
byte[] getEncryptKey()
- Returns:
- Encryption key
-
getDecryptKey
byte[] getDecryptKey()
- Returns:
- Decryption key
-
getSpecificData
byte[] getSpecificData()
- Returns:
- Plugin-specific data (can be
null)
-
close
void close()
Clears (e.g. zeroes out) the keys and specific data- Specified by:
closein interfacejava.lang.AutoCloseable
-
symmetric
static CryptSessionConfig symmetric(EncryptionIdentifier encryptionIdentifier, byte[] sessionKey, byte[] specificData)
Creates a crypt session config for a type symmetric plugin.- Parameters:
encryptionIdentifier- Encryption identifier of type SymmetricsessionKey- Session key (non-null)specificData- Plugin specific data (can benull)- Returns:
- Crypt session config
-
-