Package org.mariadb.jdbc.message.client
Class HandshakeResponse
java.lang.Object
org.mariadb.jdbc.message.client.HandshakeResponse
- All Implemented Interfaces:
ClientMessage
Server handshake response builder.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHandshakeResponse(Credential credential, String authenticationPluginType, byte[] seed, Configuration conf, String host, long clientCapabilities, byte exchangeCharset) Object with parsed results -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.mariadb.jdbc.message.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, getLocalInfileInputStream, mightBeBulkResult, readPacket, validateLocalFileName
-
Constructor Details
-
HandshakeResponse
public HandshakeResponse(Credential credential, String authenticationPluginType, byte[] seed, Configuration conf, String host, long clientCapabilities, byte exchangeCharset) Object with parsed results- Parameters:
credential- credentialauthenticationPluginType- authentication plugin to useseed- server seedconf- configurationhost- current hostclientCapabilities- client capabilitiesexchangeCharset- connection charset
-
-
Method Details
-
encode
Description copied from interface:ClientMessageEncode client message to socket.- Specified by:
encodein interfaceClientMessage- Parameters:
writer- socket writercontext- connection context- Returns:
- number of client message written
- Throws:
IOException- if socket error occur
-