public abstract class SslConnection extends StreamConnection implements SslChannel
CloseListenerSettable.Setter<C extends Channel>
thread
EMPTY
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, setSourceConduit
close, closeAction, getIoThread, getLocalAddress, getOption, getPeerAddress, getWorker, isOpen, isReadShutdown, isWriteShutdown, notifyReadClosed, notifyWriteClosed, readClosed, setOption, supportsOption, writeClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPeerAddress, getPeerAddress
getLocalAddress, getLocalAddress
close, getIoThread, getWorker
getOption, setOption, supportsOption
protected 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 SslChannel
IOException
- if an I/O error occurspublic abstract SSLSession getSslSession()
SSLSession
for this channel.getSslSession
in interface SslChannel
SSLSession
public abstract ChannelListener.Setter<? extends SslConnection> getHandshakeSetter()
getHandshakeSetter
in interface SslChannel
public ChannelListener.Setter<? extends SslConnection> getCloseSetter()
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
getCloseSetter
in interface SslChannel
getCloseSetter
in class StreamConnection
Copyright © 2017 JBoss by Red Hat. All rights reserved.