Module org.firebirdsql.jaybird
Class ChaChaEncryptionPluginSpi
java.lang.Object
org.firebirdsql.gds.ng.wire.crypt.chacha.ChaChaEncryptionPluginSpi
- All Implemented Interfaces:
EncryptionPluginSpi
ChaCha (ChaCha-20) encryption plugin provider.
- Since:
- 5
- Author:
- Mark Rotteveel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEncryptionPlugin
(CryptSessionConfig cryptSessionConfig) Creates the encryption plugin for the provided crypt session config.boolean
isSupported
(CryptConnectionInfo cryptConnectionInfo) Reports if the encryption plugin can work.
-
Constructor Details
-
ChaChaEncryptionPluginSpi
public ChaChaEncryptionPluginSpi()
-
-
Method Details
-
encryptionIdentifier
- Specified by:
encryptionIdentifier
in interfaceEncryptionPluginSpi
- Returns:
- Encryption identifier
-
createEncryptionPlugin
Description copied from interface:EncryptionPluginSpi
Creates the encryption plugin for the provided crypt session config.- Specified by:
createEncryptionPlugin
in interfaceEncryptionPluginSpi
- Parameters:
cryptSessionConfig
- Crypt session config- Returns:
- Encryption plugin
-
isSupported
Description copied from interface:EncryptionPluginSpi
Reports if the encryption plugin can work.The
connectionInfo
can be used to check compatibility with the connection, but other checks may be done as well. If the plugin expects to always work, it can simply returntrue
.NOTE: Returning
true
does not express a guarantee the plugin will work, insteadfalse
expresses that the plugin cannot (or should not) be tried to use, because it will fail anyway.- Specified by:
isSupported
in interfaceEncryptionPluginSpi
- Parameters:
cryptConnectionInfo
- information on the connection- Returns:
true
if the SPI expects the plugin to work,false
if the plugin will not work
-