public class ConfigurableSSLSocketFactory extends SocketFactory
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.
| Constructor and Description |
|---|
ConfigurableSSLSocketFactory(SSLParametersConfiguration parameters,
SSLSocketFactory delegate)
Creates a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localHost,
int localPort) |
createSocket, getDefaultpublic ConfigurableSSLSocketFactory(SSLParametersConfiguration parameters, SSLSocketFactory delegate)
parameters - parameters that will be configured on each
socket created by the factorydelegate - socket factory that will be called upon to create
sockets before configurationpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionpublic Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionCopyright © 2005–2014 QOS.ch. All rights reserved.