Package org.wildfly.security.ssl
Class ConfiguredSSLSocket
- java.lang.Object
-
- java.net.Socket
-
- javax.net.ssl.SSLSocket
-
- org.wildfly.security.ssl.AbstractDelegatingSSLSocket
-
- org.wildfly.security.ssl.ConfiguredSSLSocket
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
final class ConfiguredSSLSocket extends AbstractDelegatingSSLSocket
An SSL socket which is pre-configured.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private SSLConfigurator
sslConfigurator
private SSLContext
sslContext
-
Constructor Summary
Constructors Constructor Description ConfiguredSSLSocket(SSLSocket 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 flag)
void
setNeedClientAuth(boolean need)
void
setSSLParameters(SSLParameters params)
void
setUseClientMode(boolean mode)
void
setWantClientAuth(boolean want)
-
Methods inherited from class org.wildfly.security.ssl.AbstractDelegatingSSLSocket
addHandshakeCompletedListener, bind, close, connect, connect, getApplicationProtocol, getChannel, getDelegate, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getNeedClientAuth, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSession, getSoLinger, getSoTimeout, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getTcpNoDelay, getTrafficClass, getUseClientMode, getWantClientAuth, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, removeHandshakeCompletedListener, sendUrgentData, setHandshakeApplicationProtocolSelector, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, startHandshake, toString
-
Methods inherited from class java.net.Socket
getOption, setOption, setSocketImplFactory, supportedOptions
-
-
-
-
Field Detail
-
sslContext
private final SSLContext sslContext
-
sslConfigurator
private final SSLConfigurator sslConfigurator
-
-
Constructor Detail
-
ConfiguredSSLSocket
ConfiguredSSLSocket(SSLSocket delegate, SSLContext sslContext, SSLConfigurator sslConfigurator)
-
-
Method Detail
-
setUseClientMode
public void setUseClientMode(boolean mode)
- Overrides:
setUseClientMode
in classAbstractDelegatingSSLSocket
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Overrides:
setNeedClientAuth
in classAbstractDelegatingSSLSocket
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Overrides:
setWantClientAuth
in classAbstractDelegatingSSLSocket
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Overrides:
setEnableSessionCreation
in classAbstractDelegatingSSLSocket
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Overrides:
setEnabledCipherSuites
in classAbstractDelegatingSSLSocket
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Overrides:
setEnabledProtocols
in classAbstractDelegatingSSLSocket
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParameters
in classAbstractDelegatingSSLSocket
-
-