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, wrap
public 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 SSLEngine
SSLException
public SSLEngineResult unwrap(ByteBuffer src, ByteBuffer[] dsts, int offset, int length) throws SSLException
unwrap
in class SSLEngine
SSLException
public Runnable getDelegatedTask()
getDelegatedTask
in class SSLEngine
public void closeInbound() throws SSLException
closeInbound
in class SSLEngine
SSLException
public boolean isInboundDone()
isInboundDone
in class SSLEngine
public void closeOutbound()
closeOutbound
in class SSLEngine
public boolean isOutboundDone()
isOutboundDone
in class SSLEngine
public String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class SSLEngine
public String[] getEnabledCipherSuites()
getEnabledCipherSuites
in class SSLEngine
public void setEnabledCipherSuites(String[] strings)
setEnabledCipherSuites
in class SSLEngine
public String[] getSupportedProtocols()
getSupportedProtocols
in class SSLEngine
public String[] getEnabledProtocols()
getEnabledProtocols
in class SSLEngine
public void setEnabledProtocols(String[] strings)
setEnabledProtocols
in class SSLEngine
public SSLSession getSession()
getSession
in class SSLEngine
public void beginHandshake() throws SSLException
beginHandshake
in class SSLEngine
SSLException
public SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
in class SSLEngine
public void setUseClientMode(boolean clientMode)
setUseClientMode
in class SSLEngine
public boolean getUseClientMode()
getUseClientMode
in class SSLEngine
public void setNeedClientAuth(boolean b)
setNeedClientAuth
in class SSLEngine
public boolean getNeedClientAuth()
getNeedClientAuth
in class SSLEngine
public void setWantClientAuth(boolean b)
setWantClientAuth
in class SSLEngine
public boolean getWantClientAuth()
getWantClientAuth
in class SSLEngine
public void setEnableSessionCreation(boolean b)
setEnableSessionCreation
in class SSLEngine
public boolean getEnableSessionCreation()
getEnableSessionCreation
in class SSLEngine
Copyright © 2008-2016 The Netty Project. All Rights Reserved.