Module org.firebirdsql.jaybird
Interface CryptSessionConfig
- All Superinterfaces:
AutoCloseable
Interface for the encryption/decryption session config for wire protocol encryption for a specific plugin.
- Since:
- 5
- Author:
- Mark Rotteveel
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Clears (e.g.byte[]
byte[]
byte[]
static CryptSessionConfig
symmetric
(EncryptionIdentifier encryptionIdentifier, byte[] sessionKey, byte[] specificData) Creates a crypt session config for a type symmetric plugin.
-
Method Details
-
encryptionIdentifier
EncryptionIdentifier encryptionIdentifier()- Returns:
- Encryption identifier
-
encryptKey
byte[] encryptKey()- Returns:
- Encryption key
-
decryptKey
byte[] decryptKey()- Returns:
- Decryption key
-
specificData
byte[] specificData()- Returns:
- Plugin-specific data (can be
null
)
-
close
void close()Clears (e.g. zeroes out) the keys and specific data- Specified by:
close
in interfaceAutoCloseable
-
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
-