Top Description Fields Constructors Methods
org.xnio.channels

public Class AssembledSslChannel

extends AssembledConnectedChannel
implements SslChannel
Class Inheritance
All Implemented Interfaces
org.xnio.channels.SslChannel, org.xnio.channels.ConnectedChannel, org.xnio.channels.BoundChannel, org.xnio.channels.CloseableChannel, org.xnio.channels.Configurable, java.nio.channels.InterruptibleChannel, java.nio.channels.Channel, java.io.Closeable, java.lang.AutoCloseable
Static Imports
org.xnio._private.Messages.msg

An assembled SSL channel.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private final ChannelListener.Setter<AssembledSslChannel>
private final SslChannel

Constructor Summary

AccessConstructor and Description
public
AssembledSslChannel(final SuspendableReadChannel
the read channel
readChannel
,
final SuspendableWriteChannel
the write channel
writeChannel
)

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public ChannelListener.Setter<? extends AssembledSslChannel>
public ChannelListener.Setter<? extends AssembledSslChannel>
getHandshakeSetter()

Implements org.xnio.channels.SslChannel.getHandshakeSetter.

Get the setter which can be used to change the handshake listener for this channel.

public SSLSession
getSslSession()

Implements org.xnio.channels.SslChannel.getSslSession.

Get the current SSLSession for this channel.

public void
startHandshake()

Implements org.xnio.channels.SslChannel.startHandshake.

Start or restart the SSL/TLS handshake.

Inherited from org.xnio.channels.AssembledConnectedChannel:
getLocalAddressgetLocalAddressgetPeerAddressgetPeerAddress

Field Detail

handshakeSetterback to summary
private final ChannelListener.Setter<AssembledSslChannel> handshakeSetter
sslChannelback to summary
private final SslChannel sslChannel

Constructor Detail

AssembledSslChannelback to summary
public AssembledSslChannel(final SuspendableReadChannel readChannel, final SuspendableWriteChannel writeChannel)

Construct a new instance. At least one side must be an SSL channel.

Parameters
readChannel:SuspendableReadChannel

the read channel

writeChannel:SuspendableWriteChannel

the write channel

Method Detail

getCloseSetterback to summary
public ChannelListener.Setter<? extends AssembledSslChannel> getCloseSetter()

Overrides org.xnio.channels.AssembledConnectedChannel.getCloseSetter.

Implements org.xnio.channels.SslChannel.getCloseSetter, org.xnio.channels.ConnectedChannel.getCloseSetter, org.xnio.channels.CloseableChannel.getCloseSetter.

Doc from org.xnio.channels.SslChannel.getCloseSetter.

Get the setter which can be used to change the close listener for this channel. If the channel is already closed, then the listener will not be called.

Returns:ChannelListener.Setter<? extends AssembledSslChannel>

Doc from org.xnio.channels.CloseableChannel.getCloseSetter.

the setter

Annotations
@SuppressWarnings:unchecked
getHandshakeSetterback to summary
public ChannelListener.Setter<? extends AssembledSslChannel> getHandshakeSetter()

Implements org.xnio.channels.SslChannel.getHandshakeSetter.

Doc from org.xnio.channels.SslChannel.getHandshakeSetter.

Get the setter which can be used to change the handshake listener for this channel.

Returns:ChannelListener.Setter<? extends AssembledSslChannel>

the setter

getSslSessionback to summary
public SSLSession getSslSession()

Implements org.xnio.channels.SslChannel.getSslSession.

Doc from org.xnio.channels.SslChannel.getSslSession.

Get the current SSLSession for this channel.

Returns:SSLSession

the current SSLSession

startHandshakeback to summary
public void startHandshake() throws IOException

Implements org.xnio.channels.SslChannel.startHandshake.

Doc from org.xnio.channels.SslChannel.startHandshake.

Start or restart the SSL/TLS handshake. To force a complete SSL/TLS session renegotiation, the current session should be invalidated prior to calling this method. This method is not needed for the initial handshake as sending or receiving over the channel will automatically initiate it.

Exceptions
IOException:
if an I/O error occurs