|
Openfire 3.7.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.openfire.net.TLSWrapper
public class TLSWrapper
Creates and initializes the SSLContext instance to use to secure the plain connection. This
class is also responsible for encoding and decoding the encrypted data and place it into
the corresponding the ByteBuffer
.
Constructor Summary | |
---|---|
TLSWrapper(Connection connection,
boolean clientMode,
boolean needClientAuth,
String remoteServer)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TLSWrapper(Connection connection, boolean clientMode, boolean needClientAuth, String remoteServer)
Method Detail |
---|
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 data
SSLException
- 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 data
SSLException
- 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()
|
Openfire 3.7.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |