Package org.mariadb.jdbc.message.server
Class AuthSwitchPacket
- java.lang.Object
-
- org.mariadb.jdbc.message.server.AuthSwitchPacket
-
- All Implemented Interfaces:
ServerMessage
public class AuthSwitchPacket extends java.lang.Object implements ServerMessage
Authentication switch packet.- See Also:
- Authentication switch packet
-
-
Constructor Summary
Constructors Constructor Description AuthSwitchPacket(java.lang.String plugin, byte[] seed)
Authentication switch constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthSwitchPacket
decode(ReadableByteBuf buf)
Decode an AUTH_SWITCH_PACKET from a MYSQL packet.java.lang.String
getPlugin()
Get authentication switch plugin informationbyte[]
getSeed()
Get authentication switch seed informationstatic byte[]
getTruncatedSeed(byte[] seed)
Get truncated seed (seed without ending 0x00 byte)
-
-
-
Method Detail
-
decode
public static AuthSwitchPacket decode(ReadableByteBuf buf)
Decode an AUTH_SWITCH_PACKET from a MYSQL packet.- Parameters:
buf
- packet- Returns:
- Authentication switch packet.
-
getTruncatedSeed
public static byte[] getTruncatedSeed(byte[] seed)
Get truncated seed (seed without ending 0x00 byte)- Parameters:
seed
- connection seed- Returns:
- truncated seed
-
getPlugin
public java.lang.String getPlugin()
Get authentication switch plugin information- Returns:
- plugin
-
getSeed
public byte[] getSeed()
Get authentication switch seed information- Returns:
- seed
-
-