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 SummaryAll 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- 
getEncryptionIdentifierEncryptionIdentifier getEncryptionIdentifier() - Returns:
- Encryption identifier
 
 - 
getEncryptKeybyte[] getEncryptKey() - Returns:
- Encryption key
 
 - 
getDecryptKeybyte[] getDecryptKey() - Returns:
- Decryption key
 
 - 
getSpecificDatabyte[] getSpecificData() - Returns:
- Plugin-specific data (can be null)
 
 - 
closevoid close() Clears (e.g. zeroes out) the keys and specific data- Specified by:
- closein interface- java.lang.AutoCloseable
 
 - 
symmetricstatic CryptSessionConfig symmetric(EncryptionIdentifier encryptionIdentifier, byte[] sessionKey, byte[] specificData) Creates a crypt session config for a type symmetric plugin.- Parameters:
- encryptionIdentifier- Encryption identifier of type Symmetric
- sessionKey- Session key (non-- null)
- specificData- Plugin specific data (can be- null)
- Returns:
- Crypt session config
 
 
- 
 
-