public class ConfigurableSSLServerSocketFactory
extends javax.net.ServerSocketFactory
SSLServerSocketFactory that configures SSL parameters
(those specified in SSLParametersConfiguration on each newly
created socket.
When any of this factory's createServerSocket methods are invoked,
it calls on a delegate SSLServerSocketFactory 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 |
|---|
ConfigurableSSLServerSocketFactory(SSLParametersConfiguration parameters,
javax.net.ssl.SSLServerSocketFactory delegate)
Creates a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.ServerSocket |
createServerSocket(int port) |
java.net.ServerSocket |
createServerSocket(int port,
int backlog) |
java.net.ServerSocket |
createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress) |
public ConfigurableSSLServerSocketFactory(SSLParametersConfiguration parameters, javax.net.ssl.SSLServerSocketFactory delegate)
parameters - parameters that will be configured on each
socket created by the factorydelegate - socket factory that will be called upon to create
server sockets before configurationpublic java.net.ServerSocket createServerSocket(int port,
int backlog,
java.net.InetAddress ifAddress)
throws java.io.IOException
createServerSocket in class javax.net.ServerSocketFactoryjava.io.IOExceptionpublic java.net.ServerSocket createServerSocket(int port,
int backlog)
throws java.io.IOException
createServerSocket in class javax.net.ServerSocketFactoryjava.io.IOExceptionpublic java.net.ServerSocket createServerSocket(int port)
throws java.io.IOException
createServerSocket in class javax.net.ServerSocketFactoryjava.io.IOException