public class TLSWrapper extends Object
ByteBuffer
.Constructor and Description |
---|
TLSWrapper(Connection connection,
boolean clientMode,
boolean needClientAuth,
String remoteServer)
Deprecated.
Use the other constructor.
|
TLSWrapper(ConnectionConfiguration configuration,
boolean clientMode) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Signals that no more outbound application data will be sent on this TLSHandler.
|
void |
enableLogging(boolean logging) |
int |
getAppBuffSize() |
int |
getNetBuffSize() |
TLSStatus |
getStatus()
Returns the current status for this TLSHandler.
|
protected SSLEngine |
getTlsEngine() |
boolean |
isEngineClosed()
Returns whether unwrap(ByteBuffer, ByteBuffer) will accept any more inbound data messages and
whether wrap(ByteBuffer, ByteBuffer) will produce any more outbound data messages.
|
ByteBuffer |
unwrap(ByteBuffer net,
ByteBuffer app)
Attempts to decode SSL/TLS network data into a subsequence of plaintext application data
buffers.
|
void |
wrap(ByteBuffer app,
ByteBuffer net)
Attempts to encode a buffer of plaintext application data into TLS network data.
|
@Deprecated public TLSWrapper(Connection connection, boolean clientMode, boolean needClientAuth, String remoteServer)
public TLSWrapper(ConnectionConfiguration configuration, boolean clientMode)
public int getNetBuffSize()
public int getAppBuffSize()
public boolean isEngineClosed()
public void enableLogging(boolean logging)
public ByteBuffer unwrap(ByteBuffer net, ByteBuffer app) throws SSLException
net
- a ByteBuffer containing inbound network dataapp
- a ByteBuffer to hold inbound application dataSSLException
- A problem was encountered while processing the data that caused the
TLSHandler to abort.public void wrap(ByteBuffer app, ByteBuffer net) throws SSLException
app
- a ByteBuffer containing outbound application datanet
- a ByteBuffer to hold outbound network dataSSLException
- A problem was encountered while processing the data that caused the
TLSWrapper to abort.public void close() throws SSLException
SSLException
public TLSStatus getStatus()
protected SSLEngine getTlsEngine()
Copyright © 2003-2008 Jive Software.