public final class DbCryptData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static DbCryptData |
EMPTY_DATA |
Constructor and Description |
---|
DbCryptData(byte[] pluginData,
int replySize)
Initializes
DbCryptData instance. |
Modifier and Type | Method and Description |
---|---|
static DbCryptData |
createReply(byte[] pluginData)
Creates a reply with plugin data and expected reply size of
0 . |
byte[] |
getPluginData() |
int |
getReplySize()
Returns the expected reply size.
|
public static final DbCryptData EMPTY_DATA
public DbCryptData(byte[] pluginData, int replySize)
DbCryptData
instance.pluginData
- Data for/from plugin (can be null
)replySize
- Expected reply size (normally use 0
for a reply)java.lang.IllegalArgumentException
- when plugin data exceeds maximum length of 32767 bytespublic byte[] getPluginData()
null
)public int getReplySize()
For a protocol version 13 callback, the value will be Integer.MIN_VALUE
as the protocol does not include
this information.
In the case of a callback, this value is as received from Firebird. Judging by the code in Firebird for protocol
v14 and higher, this value may be negative, and should then be considered equivalent to 1
.
Plugins can use the value as a hint to the expected size of their reply. However smaller (or larger) replies will work.
public static DbCryptData createReply(byte[] pluginData)
0
.pluginData
- Plugin response dataCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.