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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate Stringprivate final longprivate final Stringprivate final Stringprivate final byteprivate final Stringprivate final CharSequenceprivate final byte[]private final String -
Constructor Summary
ConstructorsConstructorDescriptionHandshakeResponse(Credential credential, String authenticationPluginType, byte[] seed, Configuration conf, String host, long clientCapabilities, byte exchangeCharset) Object with parsed results -
Method Summary
Modifier and TypeMethodDescriptionintEncode client message to socket.private static voidwriteConnectAttributes(Writer writer, String connectionAttributes, String host) private static voidwriteStringLength(Writer encoder, String value) private static voidwriteStringLengthAscii(Writer encoder, String value) 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
-
Field Details
-
_CLIENT_NAME
- See Also:
-
_CLIENT_VERSION
- See Also:
-
_SERVER_HOST
- See Also:
-
_OS
- See Also:
-
_THREAD
- See Also:
-
_JAVA_VENDOR
- See Also:
-
_JAVA_VERSION
- See Also:
-
username
-
password
-
database
-
connectionAttributes
-
host
-
clientCapabilities
private final long clientCapabilities -
exchangeCharset
private final byte exchangeCharset -
seed
private final byte[] seed -
authenticationPluginType
-
-
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
-
writeStringLengthAscii
- Throws:
IOException
-
writeStringLength
- Throws:
IOException
-
writeConnectAttributes
private static void writeConnectAttributes(Writer writer, String connectionAttributes, String host) throws IOException - Throws:
IOException
-
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
-