AbstractSecureSession

Undocumented in source.

Constructors

this
this(Connection session, SSLEngine sslEngine, ProtocolSelector applicationProtocolSelector, SecureSessionHandshakeListener handshakeListener)
Undocumented in source.

Members

Functions

_doHandshake
bool _doHandshake(ByteBuffer receiveBuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
closeInbound
void closeInbound()
Undocumented in source. Be warned that the author may not have intended to support it.
closeOutbound
void closeOutbound()
Undocumented in source. Be warned that the author may not have intended to support it.
doHandshake
bool doHandshake(ByteBuffer receiveBuffer)

The initial handshake is a procedure by which the two peers exchange communication parameters until an SecureSession is established. Application data can not be sent during this phase.

doHandshakeReceive
void doHandshakeReceive(ByteBuffer receiveBuffer)
Undocumented in source. Be warned that the author may not have intended to support it.
doHandshakeResponse
void doHandshakeResponse()
Undocumented in source. Be warned that the author may not have intended to support it.
doTasks
HandshakeStatus doTasks()

Do all the outstanding handshake tasks in the current Thread.

getApplicationProtocol
string getApplicationProtocol()
Undocumented in source. Be warned that the author may not have intended to support it.
getReceivedAppBuf
ByteBuffer getReceivedAppBuf()
Undocumented in source. Be warned that the author may not have intended to support it.
getSupportedApplicationProtocols
string[] getSupportedApplicationProtocols()
Undocumented in source. Be warned that the author may not have intended to support it.
handshakeFinish
void handshakeFinish()
Undocumented in source. Be warned that the author may not have intended to support it.
isClientMode
bool isClientMode()
Undocumented in source. Be warned that the author may not have intended to support it.
isHandshakeFinished
bool isHandshakeFinished()
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.
merge
void merge(ByteBuffer now)
Undocumented in source. Be warned that the author may not have intended to support it.
newBuffer
ByteBuffer newBuffer(int size)
Undocumented in source. Be warned that the author may not have intended to support it.
read
ByteBuffer read(ByteBuffer receiveBuffer)

This method is used to decrypt data, it implied do handshake

resizeAppBuffer
void resizeAppBuffer()
Undocumented in source. Be warned that the author may not have intended to support it.
splitBuffer
ByteBuffer splitBuffer(int netSize)
Undocumented in source. Be warned that the author may not have intended to support it.
unwrap
SSLEngineResult unwrap(ByteBuffer input)
Undocumented in source. Be warned that the author may not have intended to support it.
unwrap
SSLEngineResult unwrap()
Undocumented in source. Be warned that the author may not have intended to support it.
wrap
SSLEngineResult wrap(ByteBuffer src, ByteBuffer dst)
Undocumented in source. Be warned that the author may not have intended to support it.
write
int write(ByteBuffer[] outputBuffers, Callback callback)
Undocumented in source. Be warned that the author may not have intended to support it.
write
int write(ByteBuffer outAppBuf, Callback callback)

This method is used to encrypt and flush to socket channel

Static variables

hsBuffer
ByteBuffer hsBuffer;
Undocumented in source.

Variables

applicationProtocolSelector
ProtocolSelector applicationProtocolSelector;
Undocumented in source.
closed
bool closed;
Undocumented in source.
handshakeListener
SecureSessionHandshakeListener handshakeListener;
Undocumented in source.
initialHSComplete
bool initialHSComplete;
Undocumented in source.
initialHSStatus
HandshakeStatus initialHSStatus;
Undocumented in source.
receivedAppBuf
ByteBuffer receivedAppBuf;
Undocumented in source.
receivedPacketBuf
ByteBuffer receivedPacketBuf;
Undocumented in source.
session
Connection session;
Undocumented in source.
sslEngine
SSLEngine sslEngine;
Undocumented in source.

Inherited Members

From SecureSession

NAME
enum string NAME;
Undocumented in source.
isOpen
bool isOpen()
Undocumented in source.
read
ByteBuffer read(ByteBuffer receiveBuffer)
Undocumented in source.
write
int write(ByteBuffer[] outputBuffers, Callback callback)
Undocumented in source.
write
int write(ByteBuffer outputBuffer, Callback callback)
Undocumented in source.
isHandshakeFinished
bool isHandshakeFinished()
Undocumented in source.
isClientMode
bool isClientMode()
Undocumented in source.

Meta