Class SendHandshakeResponsePacket
- java.lang.Object
-
- org.mariadb.jdbc.internal.com.send.SendHandshakeResponsePacket
-
public class SendHandshakeResponsePacket extends java.lang.Object
See https://mariadb.com/kb/en/library/connection/#client-handshake-response for reference.
-
-
Field Summary
Fields Modifier and Type Field Description private static byte[]
_CLIENT_NAME
private static byte[]
_CLIENT_VERSION
private static byte[]
_JAVA_VENDOR
private static byte[]
_JAVA_VERSION
private static byte[]
_OS
private static byte[]
_PID
private static byte[]
_SERVER_HOST
private static byte[]
_THREAD
private static java.util.function.Supplier<java.lang.String>
pidRequest
-
Constructor Summary
Constructors Constructor Description SendHandshakeResponsePacket()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
send(PacketOutputStream pos, Credential credential, java.lang.String host, java.lang.String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, java.lang.String authenticationPluginType, byte[] seed)
Send handshake response packet.private static void
writeConnectAttributes(PacketOutputStream pos, java.lang.String connectionAttributes, java.lang.String host)
-
-
-
Field Detail
-
pidRequest
private static final java.util.function.Supplier<java.lang.String> pidRequest
-
_CLIENT_NAME
private static final byte[] _CLIENT_NAME
-
_CLIENT_VERSION
private static final byte[] _CLIENT_VERSION
-
_SERVER_HOST
private static final byte[] _SERVER_HOST
-
_OS
private static final byte[] _OS
-
_PID
private static final byte[] _PID
-
_THREAD
private static final byte[] _THREAD
-
_JAVA_VENDOR
private static final byte[] _JAVA_VENDOR
-
_JAVA_VERSION
private static final byte[] _JAVA_VERSION
-
-
Method Detail
-
send
public static void send(PacketOutputStream pos, Credential credential, java.lang.String host, java.lang.String database, long clientCapabilities, long serverCapabilities, byte serverLanguage, byte packetSeq, Options options, java.lang.String authenticationPluginType, byte[] seed) throws java.io.IOException
Send handshake response packet.- Parameters:
pos
- output streamcredential
- credentialhost
- current hostnamedatabase
- database nameclientCapabilities
- client capabilitiesserverCapabilities
- server capabilitiesserverLanguage
- server language (utf8 / utf8mb4 collation)packetSeq
- packet sequenceoptions
- user optionsauthenticationPluginType
- Authentication plugin type. ex: mysql_native_passwordseed
- seed- Throws:
java.io.IOException
- if socket exception occur- See Also:
- protocol documentation
-
writeConnectAttributes
private static void writeConnectAttributes(PacketOutputStream pos, java.lang.String connectionAttributes, java.lang.String host) throws java.io.IOException
- Throws:
java.io.IOException
-
-