public class AuthSwitchPacket extends Object implements com.singlestore.jdbc.message.ServerMessage
| Constructor and Description |
|---|
AuthSwitchPacket(String plugin,
byte[] seed)
Authentication switch constructor
|
| Modifier and Type | Method and Description |
|---|---|
static AuthSwitchPacket |
decode(com.singlestore.jdbc.client.ReadableByteBuf buf)
Decode an AUTH_SWITCH_PACKET from a MYSQL packet.
|
String |
getPlugin()
Get authentication switch plugin information
|
byte[] |
getSeed()
Get authentication switch seed information
|
static byte[] |
getTruncatedSeed(byte[] seed)
Get truncated seed (seed without ending 0x00 byte)
|
public AuthSwitchPacket(String plugin, byte[] seed)
plugin - plugin requestedseed - plugin seedpublic static AuthSwitchPacket decode(com.singlestore.jdbc.client.ReadableByteBuf buf)
buf - packetpublic static byte[] getTruncatedSeed(byte[] seed)
seed - connection seedpublic String getPlugin()
public byte[] getSeed()
Copyright © 2025 SingleStore. All rights reserved.