Package org.mariadb.jdbc.message.server
Class InitialHandshakePacket
java.lang.Object
org.mariadb.jdbc.message.server.InitialHandshakePacket
- All Implemented Interfaces:
ServerMessage
Server initial handshake parser. see
https://mariadb.com/kb/en/connection/#initial-handshake-packet
-
Method Summary
Modifier and TypeMethodDescriptionstatic InitialHandshakePacketdecode(ReadableByteBuf reader) parsing packetreturn authentication plugin typelongServer capabilitiesshortServer default collationbyte[]getSeed()Seed for authentication plugin encryptionshortServer status flagslongServer thread idServer Version object
-
Method Details
-
decode
parsing packet- Parameters:
reader- packet reader- Returns:
- Parsed packet
-
getVersion
Server Version object- Returns:
- server version
-
getThreadId
public long getThreadId()Server thread id- Returns:
- thread id
-
getSeed
public byte[] getSeed()Seed for authentication plugin encryption- Returns:
- seed
-
getCapabilities
public long getCapabilities()Server capabilities- Returns:
- server capabilities
-
getDefaultCollation
public short getDefaultCollation()Server default collation- Returns:
- server default collation
-
getServerStatus
public short getServerStatus()Server status flags- Returns:
- server status
-
getAuthenticationPluginType
return authentication plugin type- Returns:
- authentication plugin type
-