public class SSLSocketConnection extends SocketConnection
closed, daemon, daemonContext, key, protocolEngine, selectorThread, socketChannel, socketDataIn, socketDataOut| Constructor and Description |
|---|
SSLSocketConnection(javax.net.ssl.SSLContext context)
Default constructor.
|
SSLSocketConnection(javax.net.ssl.SSLContext context,
boolean allowClientCertificate,
boolean requireClientCertificate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConnected()
Is the socket still connected? During the initial handshake check the raw
socket status, otherwise check the protocol status.
|
boolean |
processReadEvent()
This method is called when new network data arrives on the socket.
|
boolean |
processWriteEvent()
Write any application data to the socket by wrapping it up into the
SSL protocol.
|
void |
registrationCompleted(java.nio.channels.SelectableChannel channel,
java.nio.channels.SelectionKey key,
SelectorThread selectorThread)
This method is called once the socket is registered with a SelectorThread.
|
static void |
setEnabledCipherSuites(java.lang.String[] aCipherSuites) |
static void |
setEnabledProtocols(java.lang.String[] aProtocols) |
boolean |
wantsWrite()
Tell the selector that the handler wants to write.
|
addTask, closeConnection, closeConnection, flagWrite, getConnection, getContext, getDaemonContext, getIdleStates, getInitialOps, getLocalAddress, getLocalPort, getName, getPort, getProtocolEngine, getRemoteAddress, getSelectorThread, getSocketChannel, getThread, initialize, isSelectorThread, setProtocolEngine, setSelectionKey, setThread, wantsReadpublic SSLSocketConnection(javax.net.ssl.SSLContext context)
public SSLSocketConnection(javax.net.ssl.SSLContext context,
boolean allowClientCertificate,
boolean requireClientCertificate)
public void registrationCompleted(java.nio.channels.SelectableChannel channel,
java.nio.channels.SelectionKey key,
SelectorThread selectorThread)
registrationCompleted in interface SelectorRegistrationListenerregistrationCompleted in class SocketConnectionchannel - SelectableChannelkey - SelectionKeyselectorThread - SelectorThreadpublic boolean isConnected()
isConnected in class SocketConnectionpublic boolean processReadEvent()
processReadEvent in interface SocketHandlerprocessReadEvent in class SocketConnectionapplicationData - ByteBufferpublic boolean processWriteEvent()
processWriteEvent in interface SocketHandlerprocessWriteEvent in class SocketConnectionapplicationData - ByteBufferpublic boolean wantsWrite()
SocketHandlerwantsWrite in interface SocketHandlerwantsWrite in class SocketConnectionpublic static void setEnabledProtocols(java.lang.String[] aProtocols)
public static void setEnabledCipherSuites(java.lang.String[] aCipherSuites)
Copyright © 2021. All rights reserved.