Class OpenSSLEngine
- java.lang.Object
- 
- javax.net.ssl.SSLEngine
- 
- org.apache.tomcat.util.net.openssl.OpenSSLEngine
 
 
- 
- All Implemented Interfaces:
- SSLUtil.ProtocolInfo
 
 public final class OpenSSLEngine extends javax.net.ssl.SSLEngine implements SSLUtil.ProtocolInfo Implements aSSLEngineusing OpenSSL BIO abstractions.
- 
- 
Field SummaryFields Modifier and Type Field Description static java.util.Set<java.lang.String>AVAILABLE_CIPHER_SUITESstatic java.util.Set<java.lang.String>IMPLEMENTED_PROTOCOLS_SET
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeginHandshake()voidcloseInbound()voidcloseOutbound()protected voidfinalize()java.lang.RunnablegetDelegatedTask()java.lang.String[]getEnabledCipherSuites()java.lang.String[]getEnabledProtocols()booleangetEnableSessionCreation()javax.net.ssl.SSLEngineResult.HandshakeStatusgetHandshakeStatus()booleangetNeedClientAuth()java.lang.StringgetNegotiatedProtocol()ALPN information.javax.net.ssl.SSLSessiongetSession()java.lang.String[]getSupportedCipherSuites()java.lang.String[]getSupportedProtocols()booleangetUseClientMode()booleangetWantClientAuth()booleanisInboundDone()booleanisOutboundDone()voidsetEnabledCipherSuites(java.lang.String[] cipherSuites)voidsetEnabledProtocols(java.lang.String[] protocols)voidsetEnableSessionCreation(boolean b)voidsetNeedClientAuth(boolean b)voidsetUseClientMode(boolean clientMode)voidsetWantClientAuth(boolean b)voidshutdown()Destroys this engine.javax.net.ssl.SSLEngineResultunwrap(java.nio.ByteBuffer src, java.nio.ByteBuffer[] dsts, int offset, int length)javax.net.ssl.SSLEngineResultwrap(java.nio.ByteBuffer[] srcs, int offset, int length, java.nio.ByteBuffer dst)- 
Methods inherited from class javax.net.ssl.SSLEnginegetApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getPeerHost, getPeerPort, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters, unwrap, unwrap, wrap, wrap
 
- 
 
- 
- 
- 
Method Detail- 
getNegotiatedProtocolpublic java.lang.String getNegotiatedProtocol() Description 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 javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer[] srcs, int offset, int length, java.nio.ByteBuffer dst) throws javax.net.ssl.SSLException- Specified by:
- wrapin class- javax.net.ssl.SSLEngine
- Throws:
- javax.net.ssl.SSLException
 
 - 
unwrappublic javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer src, java.nio.ByteBuffer[] dsts, int offset, int length) throws javax.net.ssl.SSLException- Specified by:
- unwrapin class- javax.net.ssl.SSLEngine
- Throws:
- javax.net.ssl.SSLException
 
 - 
getDelegatedTaskpublic java.lang.Runnable getDelegatedTask() - Specified by:
- getDelegatedTaskin class- javax.net.ssl.SSLEngine
 
 - 
closeInboundpublic void closeInbound() throws javax.net.ssl.SSLException- Specified by:
- closeInboundin class- javax.net.ssl.SSLEngine
- Throws:
- javax.net.ssl.SSLException
 
 - 
isInboundDonepublic boolean isInboundDone() - Specified by:
- isInboundDonein class- javax.net.ssl.SSLEngine
 
 - 
closeOutboundpublic void closeOutbound() - Specified by:
- closeOutboundin class- javax.net.ssl.SSLEngine
 
 - 
isOutboundDonepublic boolean isOutboundDone() - Specified by:
- isOutboundDonein class- javax.net.ssl.SSLEngine
 
 - 
getSupportedCipherSuitespublic java.lang.String[] getSupportedCipherSuites() - Specified by:
- getSupportedCipherSuitesin class- javax.net.ssl.SSLEngine
 
 - 
getEnabledCipherSuitespublic java.lang.String[] getEnabledCipherSuites() - Specified by:
- getEnabledCipherSuitesin class- javax.net.ssl.SSLEngine
 
 - 
setEnabledCipherSuitespublic void setEnabledCipherSuites(java.lang.String[] cipherSuites) - Specified by:
- setEnabledCipherSuitesin class- javax.net.ssl.SSLEngine
 
 - 
getSupportedProtocolspublic java.lang.String[] getSupportedProtocols() - Specified by:
- getSupportedProtocolsin class- javax.net.ssl.SSLEngine
 
 - 
getEnabledProtocolspublic java.lang.String[] getEnabledProtocols() - Specified by:
- getEnabledProtocolsin class- javax.net.ssl.SSLEngine
 
 - 
setEnabledProtocolspublic void setEnabledProtocols(java.lang.String[] protocols) - Specified by:
- setEnabledProtocolsin class- javax.net.ssl.SSLEngine
 
 - 
getSessionpublic javax.net.ssl.SSLSession getSession() - Specified by:
- getSessionin class- javax.net.ssl.SSLEngine
 
 - 
beginHandshakepublic void beginHandshake() throws javax.net.ssl.SSLException- Specified by:
- beginHandshakein class- javax.net.ssl.SSLEngine
- Throws:
- javax.net.ssl.SSLException
 
 - 
getHandshakeStatuspublic javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus() - Specified by:
- getHandshakeStatusin class- javax.net.ssl.SSLEngine
 
 - 
setUseClientModepublic void setUseClientMode(boolean clientMode) - Specified by:
- setUseClientModein class- javax.net.ssl.SSLEngine
 
 - 
getUseClientModepublic boolean getUseClientMode() - Specified by:
- getUseClientModein class- javax.net.ssl.SSLEngine
 
 - 
setNeedClientAuthpublic void setNeedClientAuth(boolean b) - Specified by:
- setNeedClientAuthin class- javax.net.ssl.SSLEngine
 
 - 
getNeedClientAuthpublic boolean getNeedClientAuth() - Specified by:
- getNeedClientAuthin class- javax.net.ssl.SSLEngine
 
 - 
setWantClientAuthpublic void setWantClientAuth(boolean b) - Specified by:
- setWantClientAuthin class- javax.net.ssl.SSLEngine
 
 - 
getWantClientAuthpublic boolean getWantClientAuth() - Specified by:
- getWantClientAuthin class- javax.net.ssl.SSLEngine
 
 - 
setEnableSessionCreationpublic void setEnableSessionCreation(boolean b) - Specified by:
- setEnableSessionCreationin class- javax.net.ssl.SSLEngine
 
 - 
getEnableSessionCreationpublic boolean getEnableSessionCreation() - Specified by:
- getEnableSessionCreationin class- javax.net.ssl.SSLEngine
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- java.lang.Object
- Throws:
- java.lang.Throwable
 
 
- 
 
-