public final class DbCryptData extends java.lang.Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Creates a reply with plugin data and expected reply size of
Returns the expected reply size.
public static final DbCryptData EMPTY_DATA
public DbCryptData(byte pluginData, int replySize)
pluginData- Data for/from plugin (can be
replySize- Expected reply size (normally use
0for a reply)
java.lang.IllegalArgumentException- when plugin data exceeds maximum length of 32767 bytes
public byte getPluginData()
public int getReplySize()
For a protocol version 13 callback, the value will be
Integer.MIN_VALUE as the protocol does not include
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
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)
pluginData- Plugin response data
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.