java.lang.Object
org.firebirdsql.gds.ng.wire.crypt.EncryptionInitInfo
The initial initialization information of an encryption plugin.
Communicates success or failure, and contains the ciphers for encryption and decryption.
- Since:
- 4.0
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic EncryptionInitInfo
failure
(EncryptionIdentifier encryptionIdentifier, SQLException exception) boolean
static EncryptionInitInfo
success
(EncryptionIdentifier encryptionIdentifier, Cipher encryptionCipher, Cipher decryptionCipher)
-
Method Details
-
success
public static EncryptionInitInfo success(EncryptionIdentifier encryptionIdentifier, Cipher encryptionCipher, Cipher decryptionCipher) -
failure
public static EncryptionInitInfo failure(EncryptionIdentifier encryptionIdentifier, SQLException exception) -
getEncryptionIdentifier
-
getInitResult
-
isSuccess
public boolean isSuccess() -
getEncryptionCipher
-
getDecryptionCipher
-
getException
- Returns:
null
on SUCCESS, otherwise exception with the cause of failure (multiple exceptions may be chained!)
-