public final class OpenSSLEngine extends javax.net.ssl.SSLEngine implements SSLUtil.ProtocolInfo
SSLEngine
using
OpenSSL
BIO abstractions.Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.lang.String> |
AVAILABLE_CIPHER_SUITES |
static java.util.Set<java.lang.String> |
IMPLEMENTED_PROTOCOLS_SET |
Modifier and Type | Method and Description |
---|---|
void |
beginHandshake() |
void |
closeInbound() |
void |
closeOutbound() |
protected void |
finalize() |
java.lang.Runnable |
getDelegatedTask() |
java.lang.String[] |
getEnabledCipherSuites() |
java.lang.String[] |
getEnabledProtocols() |
boolean |
getEnableSessionCreation() |
javax.net.ssl.SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
boolean |
getNeedClientAuth() |
java.lang.String |
getNegotiatedProtocol()
ALPN information.
|
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[] cipherSuites) |
void |
setEnabledProtocols(java.lang.String[] protocols) |
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) |
getApplicationProtocol, getHandshakeApplicationProtocol, getHandshakeApplicationProtocolSelector, getHandshakeSession, getPeerHost, getPeerPort, getSSLParameters, setHandshakeApplicationProtocolSelector, setSSLParameters, unwrap, unwrap, wrap, wrap
public static final java.util.Set<java.lang.String> AVAILABLE_CIPHER_SUITES
public static final java.util.Set<java.lang.String> IMPLEMENTED_PROTOCOLS_SET
public java.lang.String getNegotiatedProtocol()
SSLUtil.ProtocolInfo
getNegotiatedProtocol
in interface SSLUtil.ProtocolInfo
public 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
in class 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
in class javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public java.lang.Runnable getDelegatedTask()
getDelegatedTask
in class javax.net.ssl.SSLEngine
public void closeInbound() throws javax.net.ssl.SSLException
closeInbound
in class javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public boolean isInboundDone()
isInboundDone
in class javax.net.ssl.SSLEngine
public void closeOutbound()
closeOutbound
in class javax.net.ssl.SSLEngine
public boolean isOutboundDone()
isOutboundDone
in class javax.net.ssl.SSLEngine
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class javax.net.ssl.SSLEngine
public java.lang.String[] getEnabledCipherSuites()
getEnabledCipherSuites
in class javax.net.ssl.SSLEngine
public void setEnabledCipherSuites(java.lang.String[] cipherSuites)
setEnabledCipherSuites
in class javax.net.ssl.SSLEngine
public java.lang.String[] getSupportedProtocols()
getSupportedProtocols
in class javax.net.ssl.SSLEngine
public java.lang.String[] getEnabledProtocols()
getEnabledProtocols
in class javax.net.ssl.SSLEngine
public void setEnabledProtocols(java.lang.String[] protocols)
setEnabledProtocols
in class javax.net.ssl.SSLEngine
public javax.net.ssl.SSLSession getSession()
getSession
in class javax.net.ssl.SSLEngine
public void beginHandshake() throws javax.net.ssl.SSLException
beginHandshake
in class javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
in class javax.net.ssl.SSLEngine
public void setUseClientMode(boolean clientMode)
setUseClientMode
in class javax.net.ssl.SSLEngine
public boolean getUseClientMode()
getUseClientMode
in class javax.net.ssl.SSLEngine
public void setNeedClientAuth(boolean b)
setNeedClientAuth
in class javax.net.ssl.SSLEngine
public boolean getNeedClientAuth()
getNeedClientAuth
in class javax.net.ssl.SSLEngine
public void setWantClientAuth(boolean b)
setWantClientAuth
in class javax.net.ssl.SSLEngine
public boolean getWantClientAuth()
getWantClientAuth
in class javax.net.ssl.SSLEngine
public void setEnableSessionCreation(boolean b)
setEnableSessionCreation
in class javax.net.ssl.SSLEngine
public boolean getEnableSessionCreation()
getEnableSessionCreation
in class javax.net.ssl.SSLEngine
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.