Class EncryptionInitInfo
- java.lang.Object
-
- org.firebirdsql.gds.ng.wire.crypt.EncryptionInitInfo
-
public final class EncryptionInitInfo extends java.lang.ObjectThe 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 Modifier and Type Class Description static classEncryptionInitInfo.InitResult
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EncryptionInitInfofailure(EncryptionIdentifier encryptionIdentifier, java.sql.SQLException exception)javax.crypto.CiphergetDecryptionCipher()javax.crypto.CiphergetEncryptionCipher()EncryptionIdentifiergetEncryptionIdentifier()java.sql.SQLExceptiongetException()EncryptionInitInfo.InitResultgetInitResult()booleanisSuccess()static EncryptionInitInfosuccess(EncryptionIdentifier encryptionIdentifier, javax.crypto.Cipher encryptionCipher, javax.crypto.Cipher decryptionCipher)
-
-
-
Method Detail
-
success
public static EncryptionInitInfo success(EncryptionIdentifier encryptionIdentifier, javax.crypto.Cipher encryptionCipher, javax.crypto.Cipher decryptionCipher)
-
failure
public static EncryptionInitInfo failure(EncryptionIdentifier encryptionIdentifier, java.sql.SQLException exception)
-
getEncryptionIdentifier
public EncryptionIdentifier getEncryptionIdentifier()
-
getInitResult
public EncryptionInitInfo.InitResult getInitResult()
-
isSuccess
public boolean isSuccess()
-
getEncryptionCipher
public javax.crypto.Cipher getEncryptionCipher()
-
getDecryptionCipher
public javax.crypto.Cipher getDecryptionCipher()
-
getException
public java.sql.SQLException getException()
- Returns:
nullon SUCCESS, otherwise exception with the cause of failure (multiple exceptions may be chained!)
-
-