Package org.mariadb.jdbc.message.client
Class HandshakeResponse
java.lang.Object
org.mariadb.jdbc.message.client.HandshakeResponse
- All Implemented Interfaces:
ClientMessage
-
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) -
Method Summary
Modifier and TypeMethodDescriptionint
encode
(PacketWriter writer, Context context) private static void
writeConnectAttributes
(PacketWriter writer, String connectionAttributes, String host) private static void
writeStringLength
(PacketWriter encoder, String value) private static void
writeStringLengthAscii
(PacketWriter 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.client.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, readPacket
-
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)
-
-
Method Details
-
writeStringLengthAscii
- Throws:
IOException
-
writeStringLength
- Throws:
IOException
-
writeConnectAttributes
private static void writeConnectAttributes(PacketWriter writer, String connectionAttributes, String host) throws IOException - Throws:
IOException
-
encode
- Specified by:
encode
in interfaceClientMessage
- Throws:
IOException
-