Module org.firebirdsql.jaybird
Class Arc4EncryptionPluginSpi
java.lang.Object
org.firebirdsql.gds.ng.wire.crypt.arc4.Arc4EncryptionPluginSpi
- All Implemented Interfaces:
EncryptionPluginSpi
ARC4 encryption plugin provider.
- Since:
- 4.0
- 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
-
Arc4EncryptionPluginSpi
public Arc4EncryptionPluginSpi()
-
-
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
-