| Modifier and Type | Method and Description |
|---|---|
| public default void | afterHandshake()
Called by the driver after completing the MySQL protocol handshake and reading the results of the authentication. |
| public default void | |
| public < result type T extends Closeable> T | Returns: a socket connected to the given hostthe hostname passed in the URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt. host, int the port number to connect to (if required). portNumber, PropertySet properties passed to the driver via the URL and/or properties
instance. props, int login timeout in milliseconds loginTimeout)Creates a new socket or channel using the given properties. |
| public < result type T extends Closeable> T | Returns: SSL socketcurrent SocketConnection socketConnection, ServerSession current ServerSession serverSession)If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake. |
| public default < result type T extends Closeable> T | Returns: SSL socketcurrent SocketConnection socketConnection, ServerSession current ServerSession serverSession, Log logger log)If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake. |
| afterHandshake | back to summary |
|---|---|
| public default void afterHandshake() throws IOException Called by the driver after completing the MySQL protocol handshake and reading the results of the authentication.
| |
| beforeHandshake | back to summary |
|---|---|
| public default void beforeHandshake() throws IOException Called by the driver before issuing the MySQL protocol handshake.
| |
| connect | back to summary |
|---|---|
| public <T extends Closeable> T connect(String host, int portNumber, PropertySet props, int loginTimeout) throws IOException Creates a new socket or channel using the given properties. Properties are parsed by
the driver from the URL. All properties other than sensitive ones (user
and password) are passed to this method. The driver will instantiate the
socket factory with the class name given in the property
"socketFactory", where the standard is
| |
| performTlsHandshake | back to summary |
|---|---|
| public <T extends Closeable> T performTlsHandshake(SocketConnection socketConnection, ServerSession serverSession) throws IOException If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake.
| |
| performTlsHandshake | back to summary |
|---|---|
| public default <T extends Closeable> T performTlsHandshake(SocketConnection socketConnection, ServerSession serverSession, Log log) throws IOException If required, called by the driver during MySQL protocol handshake to transform original socket to SSL socket and perform TLS handshake.
| |