Package org.mariadb.jdbc.message.server
Class AuthSwitchPacket
java.lang.Object
org.mariadb.jdbc.message.server.AuthSwitchPacket
- All Implemented Interfaces:
ServerMessage
Authentication switch packet.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAuthSwitchPacket
(String plugin, byte[] seed) Authentication switch constructor -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthSwitchPacket
decode
(ReadableByteBuf buf) Decode an AUTH_SWITCH_PACKET from a MYSQL packet.Get authentication switch plugin informationbyte[]
getSeed()
Get authentication switch seed informationstatic byte[]
getTruncatedSeed
(byte[] seed) Get truncated seed (seed without ending 0x00 byte)
-
Field Details
-
plugin
-
seed
private final byte[] seed
-
-
Constructor Details
-
AuthSwitchPacket
Authentication switch constructor- Parameters:
plugin
- plugin requestedseed
- plugin seed
-
-
Method Details
-
decode
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
Get authentication switch plugin information- Returns:
- plugin
-
getSeed
public byte[] getSeed()Get authentication switch seed information- Returns:
- seed
-