Class V13WireOperations
- java.lang.Object
- 
- org.firebirdsql.gds.ng.wire.AbstractWireOperations
- 
- org.firebirdsql.gds.ng.wire.version10.V10WireOperations
- 
- org.firebirdsql.gds.ng.wire.version11.V11WireOperations
- 
- org.firebirdsql.gds.ng.wire.version13.V13WireOperations
 
 
 
 
- 
- All Implemented Interfaces:
- FbWireOperations
 - Direct Known Subclasses:
- V15WireOperations
 
 public class V13WireOperations extends V11WireOperations - Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.firebirdsql.gds.ng.wire.FbWireOperationsFbWireOperations.ProcessAttachCallback
 
- 
 - 
Constructor SummaryConstructors Constructor Description V13WireOperations(WireConnection<?,?> connection, WarningMessageCallback defaultWarningMessageCallback, java.lang.Object syncObject)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket, DbCryptCallback dbCryptCallback, FbWireOperations.ProcessAttachCallback processAttachCallback)Receive authentication response from the server.protected voidenableEncryption(EncryptionInitInfo encryptionInitInfo)voidhandleCryptKeyCallback(DbCryptCallback dbCryptCallback)Handles the database encryption key callback.protected DbCryptDatareadCryptKeyCallback()Reads the database encryption callback data from the connection.protected voidwriteCryptKeyCallback(DbCryptData clientPluginResponse)Writes the database encryption callback response data to the connection.- 
Methods inherited from class org.firebirdsql.gds.ng.wire.version11.V11WireOperationsenqueueDeferredAction, processDeferredActions
 - 
Methods inherited from class org.firebirdsql.gds.ng.wire.AbstractWireOperationsaddServerKeys, clearServerKeys, consumePackets, getAttachProperties, getClientAuthBlock, getConnection, getDefaultWarningMessageCallback, getEncoding, getEncryptionIdentifiers, getSynchronizationObject, getXdrIn, getXdrOut, getXdrStreamAccess, processOperation, processResponse, processResponseWarnings, readGenericResponse, readNextOperation, readOperationResponse, readResponse, readSingleResponse, readSqlResponse, readStatusVector, setNetworkTimeout, writeDirect
 
- 
 
- 
- 
- 
Constructor Detail- 
V13WireOperationspublic V13WireOperations(WireConnection<?,?> connection, WarningMessageCallback defaultWarningMessageCallback, java.lang.Object syncObject) 
 
- 
 - 
Method Detail- 
authReceiveResponsepublic void authReceiveResponse(FbWireAttachment.AcceptPacket acceptPacket, DbCryptCallback dbCryptCallback, FbWireOperations.ProcessAttachCallback processAttachCallback) throws java.sql.SQLException, java.io.IOException Description copied from interface:FbWireOperationsReceive authentication response from the server.This method is only relevant for protocol V13 or higher. - Specified by:
- authReceiveResponsein interface- FbWireOperations
- Overrides:
- authReceiveResponsein class- V10WireOperations
- Parameters:
- acceptPacket- Packet with- op_cond_acceptdata, or- nullwhen the data should be read from the connection.
- dbCryptCallback- Database encryption callback (ignored by protocols v12 and lower)
- processAttachCallback- Callback for processing the final attach response
- Throws:
- java.sql.SQLException- For errors returned from the server, or when attempting to read.
- java.io.IOException- For errors reading the response from the connection.
 
 - 
enableEncryptionprotected void enableEncryption(EncryptionInitInfo encryptionInitInfo) throws java.sql.SQLException, java.io.IOException - Throws:
- java.sql.SQLException
- java.io.IOException
 
 - 
handleCryptKeyCallbackpublic final void handleCryptKeyCallback(DbCryptCallback dbCryptCallback) throws java.io.IOException, java.sql.SQLException Description copied from interface:FbWireOperationsHandles the database encryption key callback.- Specified by:
- handleCryptKeyCallbackin interface- FbWireOperations
- Overrides:
- handleCryptKeyCallbackin class- AbstractWireOperations
- Parameters:
- dbCryptCallback- Database encryption callback plugin
- Throws:
- java.io.IOException- For errors reading data from the socket
- java.sql.SQLException- For database errors
- java.sql.SQLFeatureNotSupportedException- If this protocol version does not support crypt key callbacks
 
 - 
readCryptKeyCallbackprotected DbCryptData readCryptKeyCallback() throws java.io.IOException, java.sql.SQLException Reads the database encryption callback data from the connection.- Returns:
- Database encryption callback data received from server
- Throws:
- java.io.IOException- For errors reading data from the socket
- java.sql.SQLException- For database errors
 
 - 
writeCryptKeyCallbackprotected void writeCryptKeyCallback(DbCryptData clientPluginResponse) throws java.sql.SQLException, java.io.IOException Writes the database encryption callback response data to the connection.- Parameters:
- clientPluginResponse- Database encryption callback response data to be sent to the server
- Throws:
- java.io.IOException- For errors reading data from the socket
- java.sql.SQLException- For database errors
 
 
- 
 
-