public class ConfigurableSSLSocketFactory
extends javax.net.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,
javax.net.ssl.SSLSocketFactory delegate)
Creates a new factory.
|
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createSocket(java.net.InetAddress host,
int port) |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort) |
public ConfigurableSSLSocketFactory(SSLParametersConfiguration parameters, javax.net.ssl.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 java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
Copyright © 2010 - 2023 Adobe. All Rights Reserved