public final class OpenSslEngine
extends javax.net.ssl.SSLEngine
SSLEngine
using
OpenSSL BIO abstractions.构造器和说明 |
---|
OpenSslEngine(long sslCtx,
SslBufferPool bufPool,
java.lang.String fallbackApplicationProtocol)
Creates a new instance
|
限定符和类型 | 方法和说明 |
---|---|
void |
beginHandshake() |
void |
closeInbound() |
void |
closeOutbound() |
java.lang.Runnable |
getDelegatedTask() |
java.lang.String[] |
getEnabledCipherSuites() |
java.lang.String[] |
getEnabledProtocols() |
boolean |
getEnableSessionCreation() |
javax.net.ssl.SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
boolean |
getNeedClientAuth() |
javax.net.ssl.SSLSession |
getSession() |
java.lang.String[] |
getSupportedCipherSuites() |
java.lang.String[] |
getSupportedProtocols() |
boolean |
getUseClientMode() |
boolean |
getWantClientAuth() |
boolean |
isInboundDone() |
boolean |
isOutboundDone() |
void |
setEnabledCipherSuites(java.lang.String[] strings) |
void |
setEnabledProtocols(java.lang.String[] strings) |
void |
setEnableSessionCreation(boolean b) |
void |
setNeedClientAuth(boolean b) |
void |
setUseClientMode(boolean clientMode) |
void |
setWantClientAuth(boolean b) |
void |
shutdown()
Destroys this engine.
|
javax.net.ssl.SSLEngineResult |
unwrap(java.nio.ByteBuffer src,
java.nio.ByteBuffer[] dsts,
int offset,
int length) |
javax.net.ssl.SSLEngineResult |
wrap(java.nio.ByteBuffer[] srcs,
int offset,
int length,
java.nio.ByteBuffer dst) |
public OpenSslEngine(long sslCtx, SslBufferPool bufPool, java.lang.String fallbackApplicationProtocol)
sslCtx
- an OpenSSL SSL_CTX
objectbufPool
- the SslBufferPool
that will be used by this enginepublic void shutdown()
public javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer[] srcs, int offset, int length, java.nio.ByteBuffer dst) throws javax.net.ssl.SSLException
wrap
在类中 javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer src, java.nio.ByteBuffer[] dsts, int offset, int length) throws javax.net.ssl.SSLException
unwrap
在类中 javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public java.lang.Runnable getDelegatedTask()
getDelegatedTask
在类中 javax.net.ssl.SSLEngine
public void closeInbound() throws javax.net.ssl.SSLException
closeInbound
在类中 javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public boolean isInboundDone()
isInboundDone
在类中 javax.net.ssl.SSLEngine
public void closeOutbound()
closeOutbound
在类中 javax.net.ssl.SSLEngine
public boolean isOutboundDone()
isOutboundDone
在类中 javax.net.ssl.SSLEngine
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
在类中 javax.net.ssl.SSLEngine
public java.lang.String[] getEnabledCipherSuites()
getEnabledCipherSuites
在类中 javax.net.ssl.SSLEngine
public void setEnabledCipherSuites(java.lang.String[] strings)
setEnabledCipherSuites
在类中 javax.net.ssl.SSLEngine
public java.lang.String[] getSupportedProtocols()
getSupportedProtocols
在类中 javax.net.ssl.SSLEngine
public java.lang.String[] getEnabledProtocols()
getEnabledProtocols
在类中 javax.net.ssl.SSLEngine
public void setEnabledProtocols(java.lang.String[] strings)
setEnabledProtocols
在类中 javax.net.ssl.SSLEngine
public javax.net.ssl.SSLSession getSession()
getSession
在类中 javax.net.ssl.SSLEngine
public void beginHandshake() throws javax.net.ssl.SSLException
beginHandshake
在类中 javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
在类中 javax.net.ssl.SSLEngine
public void setUseClientMode(boolean clientMode)
setUseClientMode
在类中 javax.net.ssl.SSLEngine
public boolean getUseClientMode()
getUseClientMode
在类中 javax.net.ssl.SSLEngine
public void setNeedClientAuth(boolean b)
setNeedClientAuth
在类中 javax.net.ssl.SSLEngine
public boolean getNeedClientAuth()
getNeedClientAuth
在类中 javax.net.ssl.SSLEngine
public void setWantClientAuth(boolean b)
setWantClientAuth
在类中 javax.net.ssl.SSLEngine
public boolean getWantClientAuth()
getWantClientAuth
在类中 javax.net.ssl.SSLEngine
public void setEnableSessionCreation(boolean b)
setEnableSessionCreation
在类中 javax.net.ssl.SSLEngine
public boolean getEnableSessionCreation()
getEnableSessionCreation
在类中 javax.net.ssl.SSLEngine