public class SSLDataProcessingWorker extends java.lang.Object implements InterfaceMessageExtractor
| Modifier and Type | Class and Description |
|---|---|
static class |
SSLDataProcessingWorker.SSL_MODES
SSL modes supported.
|
| Modifier and Type | Field and Description |
|---|---|
protected SSLDataProcessingWorker.SSL_MODES |
sslMode |
| Modifier | Constructor and Description |
|---|---|
protected |
SSLDataProcessingWorker(DataProcessingWorker worker,
SSLDataProcessingWorker.SSL_MODES sslMode,
java.lang.String myID) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPacketDemultiplexer(AbstractPacketDemultiplexer<?> pd) |
void |
demultiplexMessage(java.lang.Object message) |
java.lang.String |
getMyID() |
protected boolean |
isHandshakeComplete(java.nio.channels.SocketChannel socketChannel) |
protected void |
poke() |
void |
precedePacketDemultiplexer(AbstractPacketDemultiplexer<?> pd) |
void |
processData(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer encrypted) |
void |
processLocalMessage(java.net.InetSocketAddress sockAddr,
byte[] msg) |
protected boolean |
register(java.nio.channels.SelectionKey key,
boolean isClient) |
protected void |
remove(java.nio.channels.SelectionKey key) |
protected SSLDataProcessingWorker |
setHandshakeCallback(HandshakeCallback callback) |
protected void |
setMyID(java.lang.String id) |
void |
stop() |
java.lang.String |
toString() |
protected int |
wrap(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer unencrypted) |
protected final SSLDataProcessingWorker.SSL_MODES sslMode
protected SSLDataProcessingWorker(DataProcessingWorker worker, SSLDataProcessingWorker.SSL_MODES sslMode, java.lang.String myID) throws java.security.NoSuchAlgorithmException, javax.net.ssl.SSLException
worker - sslMode - java.security.NoSuchAlgorithmExceptionjavax.net.ssl.SSLExceptionprotected SSLDataProcessingWorker setHandshakeCallback(HandshakeCallback callback)
public void processData(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer encrypted)
processData in interface DataProcessingWorkerchannel - The socket channel on which the bytes were received.encrypted - The bytes received.protected int wrap(java.nio.channels.SocketChannel channel,
java.nio.ByteBuffer unencrypted)
protected boolean isHandshakeComplete(java.nio.channels.SocketChannel socketChannel)
protected boolean register(java.nio.channels.SelectionKey key,
boolean isClient)
throws java.io.IOException
java.io.IOExceptionprotected void poke()
protected void remove(java.nio.channels.SelectionKey key)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getMyID()
protected void setMyID(java.lang.String id)
public void stop()
stop in interface InterfaceMessageExtractorpublic void addPacketDemultiplexer(AbstractPacketDemultiplexer<?> pd)
addPacketDemultiplexer in interface InterfaceMessageExtractorpublic void precedePacketDemultiplexer(AbstractPacketDemultiplexer<?> pd)
precedePacketDemultiplexer in interface InterfaceMessageExtractorpublic void processLocalMessage(java.net.InetSocketAddress sockAddr,
byte[] msg)
processLocalMessage in interface InterfaceMessageExtractorpublic void demultiplexMessage(java.lang.Object message)
demultiplexMessage in interface DataProcessingWorkerdemultiplexMessage in interface InterfaceMessageExtractor