Class OpenSSLEngine
java.lang.Object
javax.net.ssl.SSLEngine
org.apache.tomcat.util.net.openssl.OpenSSLEngine
- All Implemented Interfaces:
SSLUtil.ProtocolInfo
Implements a
SSLEngine
using
OpenSSL
BIO abstractions.-
Field Summary
Modifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
protected void
finalize()
String[]
String[]
boolean
boolean
ALPN information.String[]
String[]
boolean
boolean
boolean
boolean
void
setEnabledCipherSuites
(String[] cipherSuites) void
setEnabledProtocols
(String[] protocols) void
setEnableSessionCreation
(boolean b) void
setNeedClientAuth
(boolean b) void
setUseClientMode
(boolean clientMode) void
setWantClientAuth
(boolean b) void
shutdown()
Destroys this engine.unwrap
(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) wrap
(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) Methods inherited from class javax.net.ssl.SSLEngine
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getPeerHost, getPeerPort, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters, unwrap, unwrap, wrap, wrap
-
Field Details
-
AVAILABLE_CIPHER_SUITES
-
IMPLEMENTED_PROTOCOLS_SET
-
-
Method Details
-
getNegotiatedProtocol
Description copied from interface:SSLUtil.ProtocolInfo
ALPN information.- Specified by:
getNegotiatedProtocol
in interfaceSSLUtil.ProtocolInfo
- Returns:
- the protocol selected using ALPN
-
shutdown
public void shutdown()Destroys this engine. -
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
- Specified by:
getDelegatedTask
in classSSLEngine
-
closeInbound
- 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
- Specified by:
getSupportedCipherSuites
in classSSLEngine
-
getEnabledCipherSuites
- Specified by:
getEnabledCipherSuites
in classSSLEngine
-
setEnabledCipherSuites
- Specified by:
setEnabledCipherSuites
in classSSLEngine
-
getSupportedProtocols
- Specified by:
getSupportedProtocols
in classSSLEngine
-
getEnabledProtocols
- Specified by:
getEnabledProtocols
in classSSLEngine
-
setEnabledProtocols
- Specified by:
setEnabledProtocols
in classSSLEngine
-
getSession
- Specified by:
getSession
in classSSLEngine
-
beginHandshake
- Specified by:
beginHandshake
in classSSLEngine
- Throws:
SSLException
-
getHandshakeStatus
- Specified by:
getHandshakeStatus
in classSSLEngine
-
setUseClientMode
public void setUseClientMode(boolean clientMode) - Specified by:
setUseClientMode
in classSSLEngine
-
getUseClientMode
public boolean getUseClientMode()- Specified by:
getUseClientMode
in classSSLEngine
-
setNeedClientAuth
public void setNeedClientAuth(boolean b) - Specified by:
setNeedClientAuth
in classSSLEngine
-
getNeedClientAuth
public boolean getNeedClientAuth()- Specified by:
getNeedClientAuth
in classSSLEngine
-
setWantClientAuth
public void setWantClientAuth(boolean b) - Specified by:
setWantClientAuth
in classSSLEngine
-
getWantClientAuth
public boolean getWantClientAuth()- Specified by:
getWantClientAuth
in classSSLEngine
-
setEnableSessionCreation
public void setEnableSessionCreation(boolean b) - Specified by:
setEnableSessionCreation
in classSSLEngine
-
getEnableSessionCreation
public boolean getEnableSessionCreation()- Specified by:
getEnableSessionCreation
in classSSLEngine
-
finalize
-