public class TLSWrapper extends Object
Constructor and Description |
---|
TLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth) |
TLSWrapper(SSLContext sslc,
TLSEventHandler eventHandler,
String hostname,
int port,
boolean clientMode,
boolean wantClientAuth,
boolean needClientAuth)
Creates a new
TLSWrapper instance. |
Modifier and Type | Method and Description |
---|---|
int |
bytesConsumed()
Method description
|
void |
close()
Method description
|
int |
getAppBuffSize()
Method description
|
CertCheckResult |
getCertificateStatus(boolean revocationEnabled)
Method description
|
int |
getNetBuffSize()
Method description
|
int |
getPacketBuffSize()
Method description
|
TLSStatus |
getStatus()
Method description
|
SSLEngine |
getTlsEngine() |
byte[] |
getTlsUniqueBindingData() |
boolean |
isClientMode()
Method description
|
void |
setDebugId(String id)
Method description
|
ByteBuffer |
unwrap(ByteBuffer net,
ByteBuffer app)
Method description
|
void |
wrap(ByteBuffer app,
ByteBuffer net)
Method description
|
public TLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth)
public TLSWrapper(SSLContext sslc, TLSEventHandler eventHandler, String hostname, int port, boolean clientMode, boolean wantClientAuth, boolean needClientAuth)
TLSWrapper
instance.sslc
- eventHandler
- hostname
- port
- clientMode
- wantClientAuth
- public int bytesConsumed()
public byte[] getTlsUniqueBindingData()
public void close() throws SSLException
SSLException
public int getAppBuffSize()
public CertCheckResult getCertificateStatus(boolean revocationEnabled)
revocationEnabled
- public int getNetBuffSize()
public int getPacketBuffSize()
public TLSStatus getStatus()
public boolean isClientMode()
public void setDebugId(String id)
id
- public ByteBuffer unwrap(ByteBuffer net, ByteBuffer app) throws SSLException
net
- app
- SSLException
public void wrap(ByteBuffer app, ByteBuffer net) throws SSLException
app
- net
- SSLException
public SSLEngine getTlsEngine()
Copyright © 2019 "Tigase, Inc.". All rights reserved.