Package org.wildfly.security.ssl
Class SNISSLEngine
- java.lang.Object
 - 
- javax.net.ssl.SSLEngine
 - 
- org.wildfly.security.ssl.SNISSLEngine
 
 
 
- 
- All Implemented Interfaces:
 SelectingContext
class SNISSLEngine extends SSLEngine implements SelectingContext
- Author:
 - David M. Lloyd
 
 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classSNISSLEngine.InitialState 
- 
Field Summary
Fields Modifier and Type Field Description (package private) static SSLEngineCLOSED_STATEprivate AtomicReference<SSLEngine>currentRef(package private) static intFL_NEED_C_AUTH(package private) static intFL_SESSION_CRE(package private) static intFL_WANT_C_AUTHprivate static SSLEngineResultOK_UNWRAPprivate Function<SSLEngine,SSLEngine>selectionCallbackprivate static SSLEngineResultUNDERFLOW_UNWRAP 
- 
Constructor Summary
Constructors Constructor Description SNISSLEngine(SNIContextMatcher selector)SNISSLEngine(SNIContextMatcher selector, String host, int port) 
- 
Method Summary
- 
Methods inherited from class javax.net.ssl.SSLEngine
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, setHandshakeApplicationProtocolSelector 
 - 
 
 - 
 
- 
- 
Field Detail
- 
UNDERFLOW_UNWRAP
private static final SSLEngineResult UNDERFLOW_UNWRAP
 
- 
OK_UNWRAP
private static final SSLEngineResult OK_UNWRAP
 
- 
currentRef
private final AtomicReference<SSLEngine> currentRef
 
- 
FL_WANT_C_AUTH
static final int FL_WANT_C_AUTH
- See Also:
 - Constant Field Values
 
 
- 
FL_NEED_C_AUTH
static final int FL_NEED_C_AUTH
- See Also:
 - Constant Field Values
 
 
- 
FL_SESSION_CRE
static final int FL_SESSION_CRE
- See Also:
 - Constant Field Values
 
 
- 
CLOSED_STATE
static final SSLEngine CLOSED_STATE
 
 - 
 
- 
Constructor Detail
- 
SNISSLEngine
SNISSLEngine(SNIContextMatcher selector)
 
- 
SNISSLEngine
SNISSLEngine(SNIContextMatcher selector, String host, int port)
 
 - 
 
- 
Method Detail
- 
setSelectionCallback
public void setSelectionCallback(Function<SSLEngine,SSLEngine> selectionCallback)
- Specified by:
 setSelectionCallbackin interfaceSelectingContext
 
- 
wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException
- Specified by:
 wrapin classSSLEngine- Throws:
 SSLException
 
- 
wrap
public SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst) throws SSLException
- Overrides:
 wrapin classSSLEngine- Throws:
 SSLException
 
- 
wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, ByteBuffer dst) throws SSLException
- Overrides:
 wrapin classSSLEngine- Throws:
 SSLException
 
- 
unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
- Specified by:
 unwrapin 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) throws SSLException
- Overrides:
 unwrapin classSSLEngine- Throws:
 SSLException
 
- 
getPeerHost
public String getPeerHost()
- Overrides:
 getPeerHostin classSSLEngine
 
- 
getPeerPort
public int getPeerPort()
- Overrides:
 getPeerPortin classSSLEngine
 
- 
getHandshakeSession
public SSLSession getHandshakeSession()
- Overrides:
 getHandshakeSessionin classSSLEngine
 
- 
getSSLParameters
public SSLParameters getSSLParameters()
- Overrides:
 getSSLParametersin classSSLEngine
 
- 
setSSLParameters
public void setSSLParameters(SSLParameters params)
- Overrides:
 setSSLParametersin classSSLEngine
 
- 
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[] cipherSuites)
- 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
 
- 
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 clientMode)
- Specified by:
 setUseClientModein classSSLEngine
 
- 
getUseClientMode
public boolean getUseClientMode()
- Specified by:
 getUseClientModein classSSLEngine
 
- 
setNeedClientAuth
public void setNeedClientAuth(boolean clientAuth)
- 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
 
 - 
 
 -