public static class ExportControlled.StandardSSLSocketFactory extends java.lang.Object implements SocketFactory, SocketMetadata
SocketMetadata.Helper| Constructor and Description |
|---|
ExportControlled.StandardSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslFact,
SocketFactory existingSocketFactory,
java.net.Socket existingSocket) |
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
afterHandshake()
Called by the driver after issuing the MySQL protocol handshake and
reading the results of the handshake.
|
java.net.Socket |
beforeHandshake()
Called by the driver before issuing the MySQL protocol handshake.
|
java.net.Socket |
connect(java.lang.String host,
int portNumber,
java.util.Properties props)
Creates a new socket using the given properties.
|
boolean |
isLocallyConnected(ConnectionImpl conn) |
public ExportControlled.StandardSSLSocketFactory(javax.net.ssl.SSLSocketFactory sslFact,
SocketFactory existingSocketFactory,
java.net.Socket existingSocket)
public java.net.Socket afterHandshake()
throws java.net.SocketException,
java.io.IOException
SocketFactoryafterHandshake in interface SocketFactoryjava.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occurspublic java.net.Socket beforeHandshake()
throws java.net.SocketException,
java.io.IOException
SocketFactorybeforeHandshake in interface SocketFactoryjava.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occurspublic java.net.Socket connect(java.lang.String host,
int portNumber,
java.util.Properties props)
throws java.net.SocketException,
java.io.IOException
SocketFactorycom.mysql.jdbc.StandardSocketFactory Implementing classes
are responsible for handling synchronization of this method (if needed).connect in interface SocketFactoryhost - the hostname passed in the JDBC URL. It will be a single
hostname, as the driver parses multi-hosts (for failover) and
calls this method for each host connection attempt.portNumber - the port number to connect to (if required).props - properties passed to the driver via the URL and/or properties
instance.java.net.SocketException - if a socket error occursjava.io.IOException - if an I/O error occurspublic boolean isLocallyConnected(ConnectionImpl conn) throws java.sql.SQLException
isLocallyConnected in interface SocketMetadatajava.sql.SQLException