Package org.wildfly.security.ssl
Class AbstractDelegatingSSLEngine
- java.lang.Object
-
- javax.net.ssl.SSLEngine
-
- org.wildfly.security.ssl.AbstractDelegatingSSLEngine
-
- Direct Known Subclasses:
ConfiguredSSLEngine
abstract class AbstractDelegatingSSLEngine extends SSLEngine
- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractDelegatingSSLEngine(SSLEngine delegate)
-
Method Summary
-
-
-
Field Detail
-
delegate
private final SSLEngine delegate
-
-
Constructor Detail
-
AbstractDelegatingSSLEngine
protected AbstractDelegatingSSLEngine(SSLEngine delegate)
-
-
Method Detail
-
getPeerHost
public String getPeerHost()
- Overrides:
getPeerHostin classSSLEngine
-
getPeerPort
public int getPeerPort()
- Overrides:
getPeerPortin classSSLEngine
-
wrap
public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException
- Overrides:
wrapin classSSLEngine- Throws:
SSLException
-
wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException
- Specified by:
wrapin classSSLEngine- Throws:
SSLException
-
unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer dst) throws SSLException
- Overrides:
unwrapin classSSLEngine- Throws:
SSLException
-
unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
- Specified by:
unwrapin classSSLEngine- Throws:
SSLException
-
getDelegatedTask
public Runnable getDelegatedTask()
- Specified by:
getDelegatedTaskin classSSLEngine
-
closeInbound
public void closeInbound() throws SSLException- Specified by:
closeInboundin classSSLEngine- Throws:
SSLException
-
isInboundDone
public boolean isInboundDone()
- Specified by:
isInboundDonein classSSLEngine
-
closeOutbound
public void closeOutbound()
- Specified by:
closeOutboundin classSSLEngine
-
isOutboundDone
public boolean isOutboundDone()
- Specified by:
isOutboundDonein classSSLEngine
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuitesin classSSLEngine
-
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuitesin classSSLEngine
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Specified by:
setEnabledCipherSuitesin classSSLEngine
-
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocolsin classSSLEngine
-
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocolsin classSSLEngine
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Specified by:
setEnabledProtocolsin classSSLEngine
-
getSession
public SSLSession getSession()
- Specified by:
getSessionin classSSLEngine
-
getHandshakeSession
public SSLSession getHandshakeSession()
- Overrides:
getHandshakeSessionin classSSLEngine
-
beginHandshake
public void beginHandshake() throws SSLException- Specified by:
beginHandshakein classSSLEngine- Throws:
SSLException
-
getHandshakeStatus
public SSLEngineResult.HandshakeStatus getHandshakeStatus()
- Specified by:
getHandshakeStatusin classSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean mode)
- Specified by:
setUseClientModein classSSLEngine
-
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientModein classSSLEngine
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuthin classSSLEngine
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuthin classSSLEngine
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuthin classSSLEngine
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuthin classSSLEngine
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreationin classSSLEngine
-
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreationin classSSLEngine
-
getSSLParameters
public SSLParameters getSSLParameters()
- Overrides:
getSSLParametersin classSSLEngine
-
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
setSSLParametersin classSSLEngine
-
getApplicationProtocol
public String getApplicationProtocol()
- Overrides:
getApplicationProtocolin classSSLEngine
-
getHandshakeApplicationProtocol
public String getHandshakeApplicationProtocol()
- Overrides:
getHandshakeApplicationProtocolin classSSLEngine
-
setHandshakeApplicationProtocolSelector
public void setHandshakeApplicationProtocolSelector(BiFunction<SSLEngine,List<String>,String> selector)
- Overrides:
setHandshakeApplicationProtocolSelectorin classSSLEngine
-
getHandshakeApplicationProtocolSelector
public BiFunction<SSLEngine,List<String>,String> getHandshakeApplicationProtocolSelector()
- Overrides:
getHandshakeApplicationProtocolSelectorin classSSLEngine
-
getDelegate
protected SSLEngine getDelegate()
-
-