public interface NIOSocketSSL extends NIOSocket
Modifier and Type | Method and Description |
---|---|
void |
beginHandshake()
Initiates SSL-handshake, starts encrypted communication.
|
javax.net.ssl.SSLEngine |
getSSLEngine()
Returns the SSLEngine in use for this socket.
|
boolean |
isEncrypted() |
closeAfterWrite, getBytesRead, getBytesWritten, getMaxQueueSize, getTimeOpen, getWriteQueueSize, listen, queue, setMaxQueueSize, setPacketReader, setPacketWriter, socket, write, write
close, getAddress, getIp, getPort, getTag, isOpen, setTag
javax.net.ssl.SSLEngine getSSLEngine()
void beginHandshake() throws javax.net.ssl.SSLException
javax.net.ssl.SSLException
- if the handshake failsboolean isEncrypted()