public abstract class SslConnection extends StreamConnection implements SslChannel
CloseListenerSettable.Setter<C extends Channel>threadEMPTY| Modifier | Constructor and Description |
|---|---|
protected |
SslConnection(XnioIoThread thread)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
ChannelListener.Setter<? extends SslConnection> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
abstract ChannelListener.Setter<? extends SslConnection> |
getHandshakeSetter()
Get the setter which can be used to change the handshake listener for this channel.
|
abstract SSLSession |
getSslSession()
Get the current
SSLSession for this channel. |
abstract void |
startHandshake()
Start or restart the SSL/TLS handshake.
|
getCloseListener, getSinkChannel, getSourceChannel, setCloseListener, setSinkConduit, setSourceConduitclose, closeAction, getIoThread, getLocalAddress, getOption, getPeerAddress, getWorker, isOpen, isReadShutdown, isWriteShutdown, notifyReadClosed, notifyWriteClosed, readClosed, setOption, supportsOption, writeClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPeerAddress, getPeerAddressgetLocalAddress, getLocalAddressclose, getIoThread, getWorkergetOption, setOption, supportsOptionprotected SslConnection(XnioIoThread thread)
thread - the I/O thread of this connectionpublic abstract void startHandshake()
throws IOException
Options.SSL_STARTTLS option is set as sending or receiving over the channel will automatically
initiate it. This method must not be called while a read or write operation is taking place.startHandshake in interface SslChannelIOException - if an I/O error occurspublic abstract SSLSession getSslSession()
SSLSession for this channel.getSslSession in interface SslChannelSSLSessionpublic abstract ChannelListener.Setter<? extends SslConnection> getHandshakeSetter()
getHandshakeSetter in interface SslChannelpublic ChannelListener.Setter<? extends SslConnection> getCloseSetter()
getCloseSetter in interface BoundChannelgetCloseSetter in interface CloseableChannelgetCloseSetter in interface ConnectedChannelgetCloseSetter in interface SslChannelgetCloseSetter in class StreamConnectionCopyright © 2017 JBoss by Red Hat. All rights reserved.