Package org.mariadb.jdbc.message.client
Class SslRequestPacket
- java.lang.Object
-
- org.mariadb.jdbc.message.client.SslRequestPacket
-
- All Implemented Interfaces:
ClientMessage
public final class SslRequestPacket extends java.lang.Object implements ClientMessage
SSL request packet see https://mariadb.com/kb/en/connection/#sslrequest-packet
-
-
Field Summary
Fields Modifier and Type Field Description private longclientCapabilitiesprivate byteexchangeCharset
-
Constructor Summary
Constructors Modifier Constructor Description privateSslRequestPacket(long clientCapabilities, byte exchangeCharset)Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SslRequestPacketcreate(long clientCapabilities, byte exchangeCharset)Create ssl request packetintencode(Writer writer, Context context)Encode client message to socket.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.mariadb.jdbc.message.ClientMessage
batchUpdateLength, binaryProtocol, canSkipMeta, description, getLocalInfileInputStream, mightBeBulkResult, readPacket, validateLocalFileName
-
-
-
-
Method Detail
-
create
public static SslRequestPacket create(long clientCapabilities, byte exchangeCharset)
Create ssl request packet- Parameters:
clientCapabilities- client capabilitiesexchangeCharset- connection charset- Returns:
- ssl request packet
-
encode
public int encode(Writer writer, Context context) throws java.io.IOException
Description copied from interface:ClientMessageEncode client message to socket.- Specified by:
encodein interfaceClientMessage- Parameters:
writer- socket writercontext- connection context- Returns:
- number of client message written
- Throws:
java.io.IOException- if socket error occur
-
-