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.booleanisSupported(CryptConnectionInfo cryptConnectionInfo) Reports if the encryption plugin can work.
-
Constructor Details
-
ChaChaEncryptionPluginSpi
public ChaChaEncryptionPluginSpi()
-
-
Method Details
-
encryptionIdentifier
- Specified by:
encryptionIdentifierin interfaceEncryptionPluginSpi- Returns:
- Encryption identifier
-
createEncryptionPlugin
Description copied from interface:EncryptionPluginSpiCreates the encryption plugin for the provided crypt session config.- Specified by:
createEncryptionPluginin interfaceEncryptionPluginSpi- Parameters:
cryptSessionConfig- Crypt session config- Returns:
- Encryption plugin
-
isSupported
Description copied from interface:EncryptionPluginSpiReports if the encryption plugin can work.The
connectionInfocan 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
truedoes not express a guarantee the plugin will work, insteadfalseexpresses that the plugin cannot (or should not) be tried to use, because it will fail anyway.- Specified by:
isSupportedin interfaceEncryptionPluginSpi- Parameters:
cryptConnectionInfo- information on the connection- Returns:
trueif the SPI expects the plugin to work,falseif the plugin will not work
-