public class AssembledSslChannel extends AssembledConnectedChannel implements SslChannel
EMPTY
Constructor and Description |
---|
AssembledSslChannel(SuspendableReadChannel readChannel,
SuspendableWriteChannel writeChannel)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
ChannelListener.Setter<? extends AssembledSslChannel> |
getCloseSetter()
Get the setter which can be used to change the close listener for this channel.
|
ChannelListener.Setter<? extends AssembledSslChannel> |
getHandshakeSetter()
Get the setter which can be used to change the handshake listener for this channel.
|
SSLSession |
getSslSession()
Get the current
SSLSession for this channel. |
void |
startHandshake()
Start or restart the SSL/TLS handshake.
|
getLocalAddress, getLocalAddress, getPeerAddress, getPeerAddress
close, getIoThread, getOption, getWorker, isOpen, setOption, supportsOption
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPeerAddress, getPeerAddress
getLocalAddress, getLocalAddress
close, getIoThread, getWorker
getOption, setOption, supportsOption
public AssembledSslChannel(SuspendableReadChannel readChannel, SuspendableWriteChannel writeChannel)
readChannel
- the read channelwriteChannel
- the write channelpublic void startHandshake() throws IOException
SslChannel
startHandshake
in interface SslChannel
IOException
- if an I/O error occurspublic SSLSession getSslSession()
SslChannel
SSLSession
for this channel.getSslSession
in interface SslChannel
SSLSession
public ChannelListener.Setter<? extends AssembledSslChannel> getHandshakeSetter()
SslChannel
getHandshakeSetter
in interface SslChannel
public ChannelListener.Setter<? extends AssembledSslChannel> getCloseSetter()
CloseableChannel
getCloseSetter
in interface BoundChannel
getCloseSetter
in interface CloseableChannel
getCloseSetter
in interface ConnectedChannel
getCloseSetter
in interface SslChannel
getCloseSetter
in class AssembledConnectedChannel
Copyright © 2018 JBoss by Red Hat. All rights reserved.