public final class StaticValueDbCryptCallbackSpi extends java.lang.Object implements DbCryptCallbackSpi
This provider takes the dbCryptConfig
value to determine the static value of the response:
null
: empty response"base64:"
: rest of the value is decoded to bytes using base64Constructor and Description |
---|
StaticValueDbCryptCallbackSpi() |
Modifier and Type | Method and Description |
---|---|
DbCryptCallback |
createDbCryptCallback(java.lang.String dbCryptConfig)
Creates the database encryption callback with a configuration string.
|
java.lang.String |
getDbCryptCallbackName()
Name of the database encryption callback.
|
public java.lang.String getDbCryptCallbackName()
DbCryptCallbackSpi
This name is for identification and selection purposes. As the name will be used in connection properties, we
suggest to use relatively simple/short names, but make sure it is unique enough to prevent name conflicts.
Consider using something like <company-or-author>.<name>
.
getDbCryptCallbackName
in interface DbCryptCallbackSpi
public DbCryptCallback createDbCryptCallback(java.lang.String dbCryptConfig)
DbCryptCallbackSpi
The configuration string of the dbCryptConfig
connection property is plugin specific, but we suggest the
following conventions:
base64:
to indicate the rest of the string is base64-encoded&
, ;
or :
, or 'hide' this by using base64 encoding; this is necessary to
avoid existing limitations in the parsing of connection properties that are added directly to the URL (we
hope to address this in the future), and to allow support for other prefixes similar to base64:
createDbCryptCallback
in interface DbCryptCallbackSpi
dbCryptConfig
- Configuration string from connection properties, or null
if absentCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.