Package com.google.cloud.sql.postgres
Class SocketFactory
java.lang.Object
javax.net.SocketFactory
com.google.cloud.sql.postgres.SocketFactory
A Postgres
SocketFactory that establishes a secure connection to a Cloud SQL instance
using ephemeral certificates.
The heavy lifting is done by the singleton InternalConnectorRegistry class.
-
Constructor Summary
ConstructorsConstructorDescriptionSocketFactory(String instanceName) Deprecated.SocketFactory(Properties info) Implements theSocketFactoryconstructor, which can be used to create authenticated connections to a Cloud SQL instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String host, int port) createSocket(String host, int port, InetAddress localHost, int localPort) createSocket(InetAddress host, int port) createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) Methods inherited from class javax.net.SocketFactory
getDefault
-
Constructor Details
-
SocketFactory
Implements theSocketFactoryconstructor, which can be used to create authenticated connections to a Cloud SQL instance. -
SocketFactory
Deprecated.
-
-
Method Details
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-
createSocket
- Specified by:
createSocketin classSocketFactory
-