Module ch.qos.logback.core
Package ch.qos.logback.core.net.ssl
Class ConfigurableSSLServerSocketFactory
java.lang.Object
javax.net.ServerSocketFactory
ch.qos.logback.core.net.ssl.ConfigurableSSLServerSocketFactory
An
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.
- Author:
- Carl Harris
-
Constructor Summary
ConstructorDescriptionConfigurableSSLServerSocketFactory
(SSLParametersConfiguration parameters, SSLServerSocketFactory delegate) Creates a new factory. -
Method Summary
Modifier and TypeMethodDescriptioncreateServerSocket
(int port) createServerSocket
(int port, int backlog) createServerSocket
(int port, int backlog, InetAddress ifAddress) Methods inherited from class javax.net.ServerSocketFactory
createServerSocket, getDefault
-
Constructor Details
-
ConfigurableSSLServerSocketFactory
public ConfigurableSSLServerSocketFactory(SSLParametersConfiguration parameters, SSLServerSocketFactory delegate) Creates a new factory.- Parameters:
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 configuration
-
-
Method Details
-
createServerSocket
public ServerSocket createServerSocket(int port, int backlog, InetAddress ifAddress) throws IOException - Specified by:
createServerSocket
in classServerSocketFactory
- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocket
in classServerSocketFactory
- Throws:
IOException
-
createServerSocket
- Specified by:
createServerSocket
in classServerSocketFactory
- Throws:
IOException
-