Class HandshakeResponse

java.lang.Object
org.mariadb.jdbc.message.client.HandshakeResponse
All Implemented Interfaces:
ClientMessage

public final class HandshakeResponse extends Object implements ClientMessage
Server handshake response builder.
See Also:
  • Constructor Details

    • HandshakeResponse

      public HandshakeResponse(Credential credential, String authenticationPluginType, byte[] seed, Configuration conf, String host, long clientCapabilities, byte exchangeCharset)
      Object with parsed results
      Parameters:
      credential - credential
      authenticationPluginType - authentication plugin to use
      seed - server seed
      conf - configuration
      host - current host
      clientCapabilities - client capabilities
      exchangeCharset - connection charset
  • Method Details

    • encode

      public int encode(Writer writer, Context context) throws IOException
      Description copied from interface: ClientMessage
      Encode client message to socket.
      Specified by:
      encode in interface ClientMessage
      Parameters:
      writer - socket writer
      context - connection context
      Returns:
      number of client message written
      Throws:
      IOException - if socket error occur