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 String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private String
private final long
private final String
private final String
private final byte
private final String
private final CharSequence
private 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 TypeMethodDescriptionint
Encode client message to socket.private static void
writeConnectAttributes
(Writer writer, String connectionAttributes, String host) private static void
writeStringLength
(Writer encoder, String value) private static void
writeStringLengthAscii
(Writer encoder, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ClientMessage
Encode client message to socket.- Specified by:
encode
in interfaceClientMessage
- Parameters:
writer
- socket writercontext
- connection context- Returns:
- number of client message written
- Throws:
IOException
- if socket error occur
-