Package com.google.cloud.sql.sqlserver
Class SocketFactory
java.lang.Object
javax.net.SocketFactory
com.google.cloud.sql.sqlserver.SocketFactory
A Microsoft SQL Server
SocketFactory that establishes a secure connection to a Cloud SQL
instance using ephemeral certificates.
The heavy lifting is done by the singleton InternalConnectorRegistry class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSocketFactory(String socketFactoryConstructorArg) 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
-
Field Details
-
props
-
domainName
-
-
Constructor Details
-
SocketFactory
Implements theSocketFactoryconstructor, which can be used to create authenticated connections to a Cloud SQL instance.- Throws:
UnsupportedEncodingException
-
-
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
-