Package org.wildfly.security.ssl
Class ConfiguredSSLEngine
- java.lang.Object
-
- javax.net.ssl.SSLEngine
-
- org.wildfly.security.ssl.AbstractDelegatingSSLEngine
-
- org.wildfly.security.ssl.ConfiguredSSLEngine
-
final class ConfiguredSSLEngine extends AbstractDelegatingSSLEngine
An SSL engine 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 ConfiguredSSLEngine(SSLEngine 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.AbstractDelegatingSSLEngine
beginHandshake, closeInbound, closeOutbound, getApplicationProtocol, getDelegate, getDelegatedTask, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getHandshakeStatus, getNeedClientAuth, getPeerHost, getPeerPort, getSession, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, isInboundDone, isOutboundDone, setHandshakeApplicationProtocolSelector, unwrap, unwrap, wrap, wrap
-
-
-
-
Field Detail
-
sslContext
private final SSLContext sslContext
-
sslConfigurator
private final SSLConfigurator sslConfigurator
-
-
Constructor Detail
-
ConfiguredSSLEngine
ConfiguredSSLEngine(SSLEngine delegate, SSLContext sslContext, SSLConfigurator sslConfigurator)
-
-
Method Detail
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Overrides:
setEnabledCipherSuites
in classAbstractDelegatingSSLEngine
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Overrides:
setEnabledProtocols
in classAbstractDelegatingSSLEngine
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParameters
in classAbstractDelegatingSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean mode)
- Overrides:
setUseClientMode
in classAbstractDelegatingSSLEngine
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Overrides:
setNeedClientAuth
in classAbstractDelegatingSSLEngine
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Overrides:
setWantClientAuth
in classAbstractDelegatingSSLEngine
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Overrides:
setEnableSessionCreation
in classAbstractDelegatingSSLEngine
-
-