public class JcaTLSWrapper extends Object implements TLSWrapper
| Constructor and Description |
|---|
JcaTLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth) |
JcaTLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth,
boolean needClientAuth)
Creates a new
TLSWrapper instance. |
JcaTLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth,
boolean needClientAuth,
String[] enabledCiphers,
String[] enabledProtocols) |
| Modifier and Type | Method and Description |
|---|---|
int |
bytesConsumed() |
void |
close() |
int |
getAppBuffSize() |
CertCheckResult |
getCertificateStatus(boolean revocationEnabled,
SSLContextContainerIfc sslContextContainer) |
SSLEngineResult.HandshakeStatus |
getHandshakeStatus() |
Certificate[] |
getLocalCertificates() |
int |
getNetBuffSize() |
int |
getPacketBuffSize() |
Certificate[] |
getPeerCertificates() |
TLSStatus |
getStatus() |
byte[] |
getTlsUniqueBindingData() |
boolean |
isClientMode() |
boolean |
isNeedClientAuth() |
void |
setDebugId(String id) |
ByteBuffer |
unwrap(ByteBuffer net,
ByteBuffer app) |
boolean |
wantClientAuth() |
void |
wrap(ByteBuffer app,
ByteBuffer net) |
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth)
public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth)
TLSWrapper instance.sslc - eventHandler - hostname - port - clientMode - wantClientAuth - public JcaTLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth, String[] enabledCiphers, String[] enabledProtocols)
public int bytesConsumed()
bytesConsumed in interface TLSWrapperpublic void close()
throws SSLException
close in interface TLSWrapperSSLExceptionpublic int getAppBuffSize()
getAppBuffSize in interface TLSWrapperpublic CertCheckResult getCertificateStatus(boolean revocationEnabled, SSLContextContainerIfc sslContextContainer)
getCertificateStatus in interface TLSWrapperpublic SSLEngineResult.HandshakeStatus getHandshakeStatus()
getHandshakeStatus in interface TLSWrapperpublic Certificate[] getLocalCertificates()
getLocalCertificates in interface TLSWrapperpublic int getNetBuffSize()
getNetBuffSize in interface TLSWrapperpublic int getPacketBuffSize()
getPacketBuffSize in interface TLSWrapperpublic Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException
getPeerCertificates in interface TLSWrapperSSLPeerUnverifiedExceptionpublic TLSStatus getStatus()
getStatus in interface TLSWrapperpublic byte[] getTlsUniqueBindingData()
getTlsUniqueBindingData in interface TLSWrapperpublic boolean isClientMode()
isClientMode in interface TLSWrapperpublic boolean isNeedClientAuth()
isNeedClientAuth in interface TLSWrapperpublic void setDebugId(String id)
setDebugId in interface TLSWrapperpublic ByteBuffer unwrap(ByteBuffer net, ByteBuffer app) throws SSLException
unwrap in interface TLSWrapperSSLExceptionpublic boolean wantClientAuth()
wantClientAuth in interface TLSWrapperpublic void wrap(ByteBuffer app, ByteBuffer net) throws SSLException
wrap in interface TLSWrapperSSLExceptionCopyright © 2004–2019 "Tigase, Inc.". All rights reserved.