Package org.wildfly.security.ssl
Class ConfiguredSSLServerSocket
- java.lang.Object
-
- java.net.ServerSocket
-
- javax.net.ssl.SSLServerSocket
-
- org.wildfly.security.ssl.AbstractDelegatingSSLServerSocket
-
- org.wildfly.security.ssl.ConfiguredSSLServerSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
final class ConfiguredSSLServerSocket extends AbstractDelegatingSSLServerSocket
An SSL server socket which is pre-configured with a specific protocol and cipher suite selection.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SSLConfigurator
sslConfigurator
private SSLContext
sslContext
-
Constructor Summary
Constructors Constructor Description ConfiguredSSLServerSocket(SSLServerSocket delegate, SSLContext sslContext, SSLConfigurator sslConfigurator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEnabledCipherSuites(String[] suites)
void
setEnabledProtocols(String[] protocols)
void
setEnableSessionCreation(boolean enabled)
void
setNeedClientAuth(boolean need)
void
setSSLParameters(SSLParameters params)
void
setUseClientMode(boolean clientMode)
void
setWantClientAuth(boolean want)
-
Methods inherited from class org.wildfly.security.ssl.AbstractDelegatingSSLServerSocket
accept, bind, bind, close, getChannel, getDelegate, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getInetAddress, getLocalPort, getLocalSocketAddress, getNeedClientAuth, getReceiveBufferSize, getReuseAddress, getSoTimeout, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toString
-
Methods inherited from class java.net.ServerSocket
getOption, implAccept, setOption, supportedOptions
-
-
-
-
Field Detail
-
sslContext
private final SSLContext sslContext
-
sslConfigurator
private final SSLConfigurator sslConfigurator
-
-
Constructor Detail
-
ConfiguredSSLServerSocket
ConfiguredSSLServerSocket(SSLServerSocket delegate, SSLContext sslContext, SSLConfigurator sslConfigurator) throws IOException
- Throws:
IOException
-
-
Method Detail
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Overrides:
setEnabledCipherSuites
in classAbstractDelegatingSSLServerSocket
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Overrides:
setEnabledProtocols
in classAbstractDelegatingSSLServerSocket
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParameters
in classAbstractDelegatingSSLServerSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Overrides:
setNeedClientAuth
in classAbstractDelegatingSSLServerSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Overrides:
setWantClientAuth
in classAbstractDelegatingSSLServerSocket
-
setUseClientMode
public void setUseClientMode(boolean clientMode)
- Overrides:
setUseClientMode
in classAbstractDelegatingSSLServerSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean enabled)
- Overrides:
setEnableSessionCreation
in classAbstractDelegatingSSLServerSocket
-
-