public interface DbCryptCallback
Database encryption callbacks are allowed to be stateful (eg if they require multiple callbacks to work). A new callback instance is created for each authentication phase of a connection (a connection can have multiple authentication phases).
NOTE: This plugin is currently only internal to Jaybird, consider the API as unstable.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDbCryptCallbackName()
Name of the database encryption callback.
|
DbCryptData |
handleCallback(DbCryptData serverData)
Callback method to be called with the server data.
|
java.lang.String getDbCryptCallbackName()
DbCryptCallbackSpi.getDbCryptCallbackName()
DbCryptData handleCallback(DbCryptData serverData)
The implementation should reply with a response for the provided data. If the plugin cannot provide a response
(eg because the server data is invalid), use an empty reply (eg use DbCryptData.EMPTY_DATA
, or construct
your own). The plugin should not throw an exception.
serverData
- Data received from the server (never null
).null
, use DbCryptData.EMPTY_DATA
if there is no (valid) reply).Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.