Package org.wildfly.security.ssl
Class SelectingServerSSLEngine.InitialState
- java.lang.Object
-
- javax.net.ssl.SSLEngine
-
- org.wildfly.security.ssl.SelectingServerSSLEngine.InitialState
-
- Enclosing class:
- SelectingServerSSLEngine
class SelectingServerSSLEngine.InitialState extends SSLEngine
-
-
Field Summary
Fields Modifier and Type Field Description private Function<SSLContext,SSLEngine>
engineFunction
private AtomicInteger
flags
private SSLSession
handshakeSession
private int
packetBufferSize
private SSLContextSelector
selector
-
Constructor Summary
Constructors Constructor Description InitialState(SSLContextSelector selector, Function<SSLContext,SSLEngine> engineFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginHandshake()
void
closeInbound()
void
closeOutbound()
Runnable
getDelegatedTask()
String[]
getEnabledCipherSuites()
String[]
getEnabledProtocols()
boolean
getEnableSessionCreation()
SSLSession
getHandshakeSession()
SSLEngineResult.HandshakeStatus
getHandshakeStatus()
boolean
getNeedClientAuth()
SSLSession
getSession()
String[]
getSupportedCipherSuites()
String[]
getSupportedProtocols()
boolean
getUseClientMode()
boolean
getWantClientAuth()
boolean
isInboundDone()
boolean
isOutboundDone()
void
setEnabledCipherSuites(String[] suites)
void
setEnabledProtocols(String[] protocols)
void
setEnableSessionCreation(boolean flag)
void
setNeedClientAuth(boolean need)
void
setUseClientMode(boolean mode)
void
setWantClientAuth(boolean want)
SSLEngineResult
unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)
SSLEngineResult
wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst)
-
Methods inherited from class javax.net.ssl.SSLEngine
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getPeerHost, getPeerPort, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters, unwrap, unwrap, wrap, wrap
-
-
-
-
Field Detail
-
selector
private final SSLContextSelector selector
-
flags
private final AtomicInteger flags
-
engineFunction
private final Function<SSLContext,SSLEngine> engineFunction
-
packetBufferSize
private int packetBufferSize
-
handshakeSession
private final SSLSession handshakeSession
-
-
Constructor Detail
-
InitialState
InitialState(SSLContextSelector selector, Function<SSLContext,SSLEngine> engineFunction)
-
-
Method Detail
-
getHandshakeSession
public SSLSession getHandshakeSession()
- Overrides:
getHandshakeSession
in classSSLEngine
-
wrap
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException
- Specified by:
wrap
in classSSLEngine
- Throws:
SSLException
-
unwrap
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
- Specified by:
unwrap
in classSSLEngine
- Throws:
SSLException
-
getDelegatedTask
public Runnable getDelegatedTask()
- Specified by:
getDelegatedTask
in classSSLEngine
-
closeInbound
public void closeInbound() throws SSLException
- Specified by:
closeInbound
in classSSLEngine
- Throws:
SSLException
-
isInboundDone
public boolean isInboundDone()
- Specified by:
isInboundDone
in classSSLEngine
-
closeOutbound
public void closeOutbound()
- Specified by:
closeOutbound
in classSSLEngine
-
isOutboundDone
public boolean isOutboundDone()
- Specified by:
isOutboundDone
in classSSLEngine
-
getSupportedCipherSuites
public String[] getSupportedCipherSuites()
- Specified by:
getSupportedCipherSuites
in classSSLEngine
-
getEnabledCipherSuites
public String[] getEnabledCipherSuites()
- Specified by:
getEnabledCipherSuites
in classSSLEngine
-
setEnabledCipherSuites
public void setEnabledCipherSuites(String[] suites)
- Specified by:
setEnabledCipherSuites
in classSSLEngine
-
getSupportedProtocols
public String[] getSupportedProtocols()
- Specified by:
getSupportedProtocols
in classSSLEngine
-
getEnabledProtocols
public String[] getEnabledProtocols()
- Specified by:
getEnabledProtocols
in classSSLEngine
-
setEnabledProtocols
public void setEnabledProtocols(String[] protocols)
- Specified by:
setEnabledProtocols
in classSSLEngine
-
getSession
public SSLSession getSession()
- Specified by:
getSession
in classSSLEngine
-
beginHandshake
public void beginHandshake() throws SSLException
- Specified by:
beginHandshake
in classSSLEngine
- Throws:
SSLException
-
getHandshakeStatus
public SSLEngineResult.HandshakeStatus getHandshakeStatus()
- Specified by:
getHandshakeStatus
in classSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean mode)
- Specified by:
setUseClientMode
in classSSLEngine
-
getUseClientMode
public boolean getUseClientMode()
- Specified by:
getUseClientMode
in classSSLEngine
-
setNeedClientAuth
public void setNeedClientAuth(boolean need)
- Specified by:
setNeedClientAuth
in classSSLEngine
-
getNeedClientAuth
public boolean getNeedClientAuth()
- Specified by:
getNeedClientAuth
in classSSLEngine
-
setWantClientAuth
public void setWantClientAuth(boolean want)
- Specified by:
setWantClientAuth
in classSSLEngine
-
getWantClientAuth
public boolean getWantClientAuth()
- Specified by:
getWantClientAuth
in classSSLEngine
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean flag)
- Specified by:
setEnableSessionCreation
in classSSLEngine
-
getEnableSessionCreation
public boolean getEnableSessionCreation()
- Specified by:
getEnableSessionCreation
in classSSLEngine
-
-