Class SocketFactory (1.14.1)

public class SocketFactory extends ConfigurableSocketFactory

A MariaDB SocketFactory that establishes a secure connection to a Cloud SQL instance using ephemeral certificates.

The heavy lifting is done by the singleton CoreSocketFactory class.

Inheritance

java.lang.Object > SocketFactory > org.mariadb.jdbc.util.ConfigurableSocketFactory > SocketFactory

Constructors

SocketFactory()

public SocketFactory()

Methods

createSocket()

public Socket createSocket()
Returns
TypeDescription
Socket
Overrides
Exceptions
TypeDescription
IOException

createSocket(String s, int i)

public Socket createSocket(String s, int i)
Parameters
NameDescription
sString
iint
Returns
TypeDescription
Socket
Overrides

createSocket(String s, int i, InetAddress inetAddress, int i1)

public Socket createSocket(String s, int i, InetAddress inetAddress, int i1)
Parameters
NameDescription
sString
iint
inetAddressInetAddress
i1int
Returns
TypeDescription
Socket
Overrides

createSocket(InetAddress inetAddress, int i)

public Socket createSocket(InetAddress inetAddress, int i)
Parameters
NameDescription
inetAddressInetAddress
iint
Returns
TypeDescription
Socket
Overrides

createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1)

public Socket createSocket(InetAddress inetAddress, int i, InetAddress inetAddress1, int i1)
Parameters
NameDescription
inetAddressInetAddress
iint
inetAddress1InetAddress
i1int
Returns
TypeDescription
Socket
Overrides

setConfiguration(Configuration conf, String host)

public void setConfiguration(Configuration conf, String host)
Parameters
NameDescription
conforg.mariadb.jdbc.Configuration
hostString
Overrides
org.mariadb.jdbc.util.ConfigurableSocketFactory.setConfiguration(org.mariadb.jdbc.Configuration,java.lang.String)