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 SummaryFieldsModifier and TypeFieldDescription
- 
Method SummaryModifier and TypeMethodDescriptionvoidvoidvoidString[]String[]booleanbooleanALPN information.String[]String[]booleanbooleanbooleanbooleanvoidsetEnabledCipherSuites(String[] cipherSuites) voidsetEnabledProtocols(String[] protocols) voidsetEnableSessionCreation(boolean b) voidsetNeedClientAuth(boolean b) voidsetUseClientMode(boolean clientMode) voidsetWantClientAuth(boolean b) voidshutdown()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.SSLEnginegetApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getPeerHost, getPeerPort, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters, unwrap, unwrap, wrap, wrap
- 
Field Details- 
AVAILABLE_CIPHER_SUITES
- 
IMPLEMENTED_PROTOCOLS_SET
 
- 
- 
Method Details- 
getNegotiatedProtocolDescription copied from interface:SSLUtil.ProtocolInfoALPN information.- Specified by:
- getNegotiatedProtocolin interface- SSLUtil.ProtocolInfo
- Returns:
- the protocol selected using ALPN
 
- 
shutdownpublic void shutdown()Destroys this engine.
- 
wrappublic SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException - Specified by:
- wrapin class- SSLEngine
- Throws:
- SSLException
 
- 
unwrappublic SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException - Specified by:
- unwrapin class- SSLEngine
- Throws:
- SSLException
 
- 
getDelegatedTask- Specified by:
- getDelegatedTaskin class- SSLEngine
 
- 
closeInbound- Specified by:
- closeInboundin class- SSLEngine
- Throws:
- SSLException
 
- 
isInboundDonepublic boolean isInboundDone()- Specified by:
- isInboundDonein class- SSLEngine
 
- 
closeOutboundpublic void closeOutbound()- Specified by:
- closeOutboundin class- SSLEngine
 
- 
isOutboundDonepublic boolean isOutboundDone()- Specified by:
- isOutboundDonein class- SSLEngine
 
- 
getSupportedCipherSuites- Specified by:
- getSupportedCipherSuitesin class- SSLEngine
 
- 
getEnabledCipherSuites- Specified by:
- getEnabledCipherSuitesin class- SSLEngine
 
- 
setEnabledCipherSuites- Specified by:
- setEnabledCipherSuitesin class- SSLEngine
 
- 
getSupportedProtocols- Specified by:
- getSupportedProtocolsin class- SSLEngine
 
- 
getEnabledProtocols- Specified by:
- getEnabledProtocolsin class- SSLEngine
 
- 
setEnabledProtocols- Specified by:
- setEnabledProtocolsin class- SSLEngine
 
- 
getSession- Specified by:
- getSessionin class- SSLEngine
 
- 
beginHandshake- Specified by:
- beginHandshakein class- SSLEngine
- Throws:
- SSLException
 
- 
getHandshakeStatus- Specified by:
- getHandshakeStatusin class- SSLEngine
 
- 
setUseClientModepublic void setUseClientMode(boolean clientMode) - Specified by:
- setUseClientModein class- SSLEngine
 
- 
getUseClientModepublic boolean getUseClientMode()- Specified by:
- getUseClientModein class- SSLEngine
 
- 
setNeedClientAuthpublic void setNeedClientAuth(boolean b) - Specified by:
- setNeedClientAuthin class- SSLEngine
 
- 
getNeedClientAuthpublic boolean getNeedClientAuth()- Specified by:
- getNeedClientAuthin class- SSLEngine
 
- 
setWantClientAuthpublic void setWantClientAuth(boolean b) - Specified by:
- setWantClientAuthin class- SSLEngine
 
- 
getWantClientAuthpublic boolean getWantClientAuth()- Specified by:
- getWantClientAuthin class- SSLEngine
 
- 
setEnableSessionCreationpublic void setEnableSessionCreation(boolean b) - Specified by:
- setEnableSessionCreationin class- SSLEngine
 
- 
getEnableSessionCreationpublic boolean getEnableSessionCreation()- Specified by:
- getEnableSessionCreationin class- SSLEngine
 
 
-