public class JSSEngineReferenceImpl extends JSSEngine
as_server, BUFFER_SIZE, cert, certAlias, config, enabled_ciphers, handshake_state, hostname, is_inbound_closed, is_outbound_closed, key, key_managers, logger, max_protocol, min_protocol, need_client_auth, serverTemplates, session, ssl_fd, trust_managers, want_client_auth
Constructor and Description |
---|
JSSEngineReferenceImpl() |
JSSEngineReferenceImpl(java.lang.String peerHost,
int peerPort) |
JSSEngineReferenceImpl(java.lang.String peerHost,
int peerPort,
X509Certificate localCert,
PrivateKey localKey) |
Modifier and Type | Method and Description |
---|---|
void |
beginHandshake() |
void |
cleanup()
Performs cleanup of internal data, closing both inbound and outbound
data streams if still open.
|
void |
closeInbound() |
void |
closeOutbound() |
void |
enableSafeDebugLogging(int port)
Enable writing of encrypted TLS traffic to the specified port in a
client-server relationship (mirroring the actual role of this
SSLEngine) to enable debugging with Wireshark.
|
java.lang.Runnable |
getDelegatedTask() |
javax.net.ssl.SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
java.lang.String |
getHostname() |
SecurityStatusResult |
getStatus()
Gets the current security status of this JSSEngine instance.
|
protected void |
reconfigureClientAuth()
Implementation-specific handler to handle reconfiguration of client
authentication after the handshake has completed.
|
void |
setName(java.lang.String name)
Set the name of this JSSEngine instance, to be printed in logging calls.
|
void |
tryCleanup()
Calls cleanup only if both inbound and outbound data streams are
closed.
|
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) |
int |
writeData(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
addConfiguration, errorText, getDefaultConfiguration, getEnabledCipherSuites, getEnabledProtocols, getEnableSessionCreation, getNeedClientAuth, getServerTemplate, getSession, getSSLFDProxy, getSSLParameters, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, initializeSessionCache, isInboundDone, isOutboundDone, queryEnabledCipherSuites, queryEnabledProtocols, removeConfiguration, setCertFromAlias, setConfiguration, setEnabledCipherSuites, setEnabledCipherSuites, setEnabledProtocols, setEnabledProtocols, setEnabledProtocols, setEnableSessionCreation, setHostname, setKeyManager, setKeyManagers, setKeyMaterials, setNeedClientAuth, setSSLParameters, setTrustManager, setTrustManagers, setUseClientMode, setWantClientAuth
public JSSEngineReferenceImpl()
public JSSEngineReferenceImpl(java.lang.String peerHost, int peerPort)
public JSSEngineReferenceImpl(java.lang.String peerHost, int peerPort, X509Certificate localCert, PrivateKey localKey)
public void setName(java.lang.String name)
protected void reconfigureClientAuth()
JSSEngine
reconfigureClientAuth
in class JSSEngine
public void beginHandshake() throws javax.net.ssl.SSLException
beginHandshake
in class javax.net.ssl.SSLEngine
javax.net.ssl.SSLException
public void closeInbound()
closeInbound
in class javax.net.ssl.SSLEngine
public void closeOutbound()
closeOutbound
in class javax.net.ssl.SSLEngine
public java.lang.String getHostname()
public java.lang.Runnable getDelegatedTask()
getDelegatedTask
in class javax.net.ssl.SSLEngine
public javax.net.ssl.SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus
in class javax.net.ssl.SSLEngine
public SecurityStatusResult getStatus()
JSSEngine
public void enableSafeDebugLogging(int port)
public javax.net.ssl.SSLEngineResult unwrap(java.nio.ByteBuffer src, java.nio.ByteBuffer[] dsts, int offset, int length) throws java.lang.IllegalArgumentException, javax.net.ssl.SSLException
unwrap
in class javax.net.ssl.SSLEngine
java.lang.IllegalArgumentException
javax.net.ssl.SSLException
public int writeData(java.nio.ByteBuffer[] srcs, int offset, int length)
public javax.net.ssl.SSLEngineResult wrap(java.nio.ByteBuffer[] srcs, int offset, int length, java.nio.ByteBuffer dst) throws java.lang.IllegalArgumentException, javax.net.ssl.SSLException
wrap
in class javax.net.ssl.SSLEngine
java.lang.IllegalArgumentException
javax.net.ssl.SSLException
public void tryCleanup()
tryCleanup
in class JSSEngine