public final class OpenSslEngine extends SSLEngine
SSLEngine using
 OpenSSL BIO abstractions.| Constructor and Description | 
|---|
OpenSslEngine(long sslCtx,
             SslBufferPool bufPool,
             String fallbackApplicationProtocol)
Creates a new instance 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
beginHandshake()  | 
void | 
closeInbound()  | 
void | 
closeOutbound()  | 
Runnable | 
getDelegatedTask()  | 
String[] | 
getEnabledCipherSuites()  | 
String[] | 
getEnabledProtocols()  | 
boolean | 
getEnableSessionCreation()  | 
SSLEngineResult.HandshakeStatus | 
getHandshakeStatus()  | 
boolean | 
getNeedClientAuth()  | 
SSLSession | 
getSession()  | 
String[] | 
getSupportedCipherSuites()  | 
String[] | 
getSupportedProtocols()  | 
boolean | 
getUseClientMode()  | 
boolean | 
getWantClientAuth()  | 
boolean | 
isInboundDone()  | 
boolean | 
isOutboundDone()  | 
void | 
setEnabledCipherSuites(String[] strings)  | 
void | 
setEnabledProtocols(String[] strings)  | 
void | 
setEnableSessionCreation(boolean b)  | 
void | 
setNeedClientAuth(boolean b)  | 
void | 
setUseClientMode(boolean clientMode)  | 
void | 
setWantClientAuth(boolean b)  | 
void | 
shutdown()
Destroys this engine. 
 | 
SSLEngineResult | 
unwrap(ByteBuffer src,
      ByteBuffer[] dsts,
      int offset,
      int length)  | 
SSLEngineResult | 
wrap(ByteBuffer[] srcs,
    int offset,
    int length,
    ByteBuffer dst)  | 
getHandshakeSession, getPeerHost, getPeerPort, getSSLParameters, setSSLParameters, unwrap, unwrap, wrap, wrappublic OpenSslEngine(long sslCtx,
             SslBufferPool bufPool,
             String fallbackApplicationProtocol)
sslCtx - an OpenSSL SSL_CTX objectbufPool - the SslBufferPool that will be used by this enginepublic void shutdown()
public SSLEngineResult wrap(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst) throws SSLException
wrap in class SSLEngineSSLExceptionpublic SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
unwrap in class SSLEngineSSLExceptionpublic Runnable getDelegatedTask()
getDelegatedTask in class SSLEnginepublic void closeInbound()
                  throws SSLException
closeInbound in class SSLEngineSSLExceptionpublic boolean isInboundDone()
isInboundDone in class SSLEnginepublic void closeOutbound()
closeOutbound in class SSLEnginepublic boolean isOutboundDone()
isOutboundDone in class SSLEnginepublic String[] getSupportedCipherSuites()
getSupportedCipherSuites in class SSLEnginepublic String[] getEnabledCipherSuites()
getEnabledCipherSuites in class SSLEnginepublic void setEnabledCipherSuites(String[] strings)
setEnabledCipherSuites in class SSLEnginepublic String[] getSupportedProtocols()
getSupportedProtocols in class SSLEnginepublic String[] getEnabledProtocols()
getEnabledProtocols in class SSLEnginepublic void setEnabledProtocols(String[] strings)
setEnabledProtocols in class SSLEnginepublic SSLSession getSession()
getSession in class SSLEnginepublic void beginHandshake()
                    throws SSLException
beginHandshake in class SSLEngineSSLExceptionpublic SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus in class SSLEnginepublic void setUseClientMode(boolean clientMode)
setUseClientMode in class SSLEnginepublic boolean getUseClientMode()
getUseClientMode in class SSLEnginepublic void setNeedClientAuth(boolean b)
setNeedClientAuth in class SSLEnginepublic boolean getNeedClientAuth()
getNeedClientAuth in class SSLEnginepublic void setWantClientAuth(boolean b)
setWantClientAuth in class SSLEnginepublic boolean getWantClientAuth()
getWantClientAuth in class SSLEnginepublic void setEnableSessionCreation(boolean b)
setEnableSessionCreation in class SSLEnginepublic boolean getEnableSessionCreation()
getEnableSessionCreation in class SSLEngineCopyright © 2008-2015 The Netty Project. All Rights Reserved.