public interface HandshakeResponse extends LoginClientMessage
LoginClientMessage considers handshake response.| Modifier and Type | Method and Description |
|---|---|
static HandshakeResponse |
from(int envelopeId,
Capability capability,
int collationId,
String user,
byte[] authentication,
String authType,
String database,
Map<String,String> attributes)
Construct an instance of
HandshakeResponse, it is implemented by the protocol version that is
given by Capability. |
static void |
writeCString(io.netty.buffer.ByteBuf buf,
String value,
Charset charset)
Write a C-style string into a
ByteBuf. |
getEnvelopeIdencodestatic HandshakeResponse from(int envelopeId, Capability capability, int collationId, String user, byte[] authentication, String authType, String database, Map<String,String> attributes)
HandshakeResponse, it is implemented by the protocol version that is
given by Capability.envelopeId - the beginning envelope ID of this message.capability - the current Capability.collationId - the CharCollation ID, or 0 if server does not return a collation ID.user - the username for login.authentication - the password authentication for login.authType - the authentication plugin type.database - the connecting database, may be empty.attributes - the connecting attributes.Copyright © 2018–2023 asyncer.io. All rights reserved.