SSLSocketFactory that configures SSL parameters (those covered by
SSLParameters) on each newly created socket.
When any of this factory's createSocket methods are invoked, it calls
on a SSLSocketFactory delegate to create the socket, and then sets
the SSL parameters of the socket (using the provided configuration) before
returning the socket to the caller.
| Modifier and Type | Field and Description |
|---|---|
| private final SSLSocketFactory | |
| private final SSLParametersConfiguration |
| Access | Constructor and Description |
|---|---|
| public | ConfigurableSSLSocketFactory(SSLParametersConfiguration
parameters that will be configured on each socket created
by the factory parameters, SSLSocketFactory socket factory that will be called upon to create sockets
before configuration delegate)Creates a new factory. |
| Modifier and Type | Method and Description |
|---|---|
| public Socket | createSocket(InetAddress
the server network address address, int the server port port, InetAddress the client network address localAddress, int the client port localPort)Implements abstract javax. |
| public Socket | createSocket(InetAddress
the server host host, int the server port port)Implements abstract javax. |
| public Socket | createSocket(String
the server host name with which to connect, or
host, int null for the loopback address.the server port port, InetAddress the local address the socket is bound to localHost, int the local port the socket is bound to localPort)Implements abstract javax. |
| public Socket | createSocket(String
the server host name with which to connect, or
host, int null for the loopback address.the server port port)Implements abstract javax. |
| delegate | back to summary |
|---|---|
| private final SSLSocketFactory delegate | |
| parameters | back to summary |
|---|---|
| private final SSLParametersConfiguration parameters | |
| ConfigurableSSLSocketFactory | back to summary |
|---|---|
| public ConfigurableSSLSocketFactory(SSLParametersConfiguration parameters, SSLSocketFactory delegate) Creates a new factory.
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connect it to the specified remote address on the specified remote port. The socket will also be bound to the local address and port supplied. The socket is configured using the socket options established for this factory.
If there is a security manager, its
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(InetAddress host, int port) throws IOException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified port number at the specified address. This socket is configured using the socket options established for this factory.
If there is a security manager, its
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified remote host on the specified remote port. The socket will also be bound to the local address and port supplied. This socket is configured using the socket options established for this factory.
If there is a security manager, its
| |
| createSocket | back to summary |
|---|---|
| public Socket createSocket(String host, int port) throws IOException, UnknownHostException Implements abstract javax. Doc from javax. Creates a socket and connects it to the specified remote host at the specified remote port. This socket is configured using the socket options established for this factory.
If there is a security manager, its
| |