public class SocketFactory extends Object implements com.mysql.jdbc.SocketFactory
SocketFactory that establishes a secure connection to a Cloud SQL instance using
ephemeral certificates.
The heavy lifting is done by the singleton SslSocketFactory class.
| Constructor and Description |
|---|
SocketFactory() |
| Modifier and Type | Method and Description |
|---|---|
Socket |
afterHandshake() |
Socket |
beforeHandshake() |
Socket |
connect(String hostname,
int portNumber,
Properties props) |
public Socket connect(String hostname, int portNumber, Properties props) throws IOException
connect in interface com.mysql.jdbc.SocketFactoryIOExceptionpublic Socket beforeHandshake()
beforeHandshake in interface com.mysql.jdbc.SocketFactorypublic Socket afterHandshake()
afterHandshake in interface com.mysql.jdbc.SocketFactoryCopyright © 2017. All rights reserved.