Top Description Fields Constructors Methods
org.xnio.channels

public Class AssembledConnectedSslStreamChannel

extends AssembledConnectedStreamChannel
implements ConnectedSslStreamChannel
Class Inheritance
All Implemented Interfaces
org.xnio.channels.ConnectedSslStreamChannel, 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, org.xnio.channels.ConnectedStreamChannel, org.xnio.channels.StreamChannel, org.xnio.channels.ByteChannel, java.nio.channels.ScatteringByteChannel, java.nio.channels.ReadableByteChannel, java.nio.channels.GatheringByteChannel, java.nio.channels.WritableByteChannel, java.nio.channels.ByteChannel, org.xnio.channels.StreamSourceChannel, org.xnio.channels.SuspendableReadChannel, org.xnio.channels.StreamSinkChannel, org.xnio.channels.SuspendableWriteChannel, org.xnio.channels.SuspendableChannel
Imports
java.io.IOException, org.xnio.ChannelListener, .ChannelListeners, javax.net.ssl.SSLSession

A connected SSL stream channel assembled from a stream source and stream sink.
Author
David M. Lloyd

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
AssembledConnectedSslStreamChannel(final SslChannel
the SSL channel
sslChannel
,
final StreamSourceChannel
the source
source
,
final StreamSinkChannel
the sink
sink
)

Construct a new instance.

public
AssembledConnectedSslStreamChannel(final StreamSourceChannel
the source
source
,
final StreamSinkChannel
the sink
sink
)

Construct a new instance.

Method Summary

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

Implements org.xnio.channels.SslChannel.getHandshakeSetter.

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

public ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel>
public SSLSession
getSslSession()

Implements org.xnio.channels.SslChannel.getSslSession.

Get the current SSLSession for this channel.

public ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel>
public void
startHandshake()

Implements org.xnio.channels.SslChannel.startHandshake.

Start or restart the SSL/TLS handshake.

Inherited from org.xnio.channels.AssembledConnectedStreamChannel:
getLocalAddressgetLocalAddressgetPeerAddressgetPeerAddress

Field Detail

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

Constructor Detail

AssembledConnectedSslStreamChannelback to summary
public AssembledConnectedSslStreamChannel(final SslChannel sslChannel, final StreamSourceChannel source, final StreamSinkChannel sink)

Construct a new instance.

Parameters
sslChannel:SslChannel

the SSL channel

source:StreamSourceChannel

the source

sink:StreamSinkChannel

the sink

AssembledConnectedSslStreamChannelback to summary
public AssembledConnectedSslStreamChannel(final StreamSourceChannel source, final StreamSinkChannel sink)

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

Parameters
source:StreamSourceChannel

the source

sink:StreamSinkChannel

the sink

Method Detail

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

Overrides org.xnio.channels.AssembledConnectedStreamChannel.getCloseSetter.

Implements org.xnio.channels.ConnectedSslStreamChannel.getCloseSetter, org.xnio.channels.ConnectedStreamChannel.getCloseSetter, org.xnio.channels.StreamChannel.getCloseSetter.

Doc from org.xnio.channels.ConnectedSslStreamChannel.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 AssembledConnectedSslStreamChannel>

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

the setter

Annotations
@SuppressWarnings:unchecked
getHandshakeSetterback to summary
public ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel> 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 AssembledConnectedSslStreamChannel>

the setter

getReadSetterback to summary
public ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel> getReadSetter()

Overrides org.xnio.channels.AssembledConnectedStreamChannel.getReadSetter.

Implements org.xnio.channels.ConnectedSslStreamChannel.getReadSetter, org.xnio.channels.ConnectedStreamChannel.getReadSetter, org.xnio.channels.StreamChannel.getReadSetter.

Doc from org.xnio.channels.ConnectedSslStreamChannel.getReadSetter.

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

Returns:ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel>

Doc from org.xnio.channels.SuspendableReadChannel.getReadSetter.

the setter

Annotations
@SuppressWarnings:unchecked
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

getWriteSetterback to summary
public ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel> getWriteSetter()

Overrides org.xnio.channels.AssembledConnectedStreamChannel.getWriteSetter.

Implements org.xnio.channels.ConnectedSslStreamChannel.getWriteSetter, org.xnio.channels.ConnectedStreamChannel.getWriteSetter, org.xnio.channels.StreamChannel.getWriteSetter.

Doc from org.xnio.channels.ConnectedSslStreamChannel.getWriteSetter.

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

Returns:ChannelListener.Setter<? extends AssembledConnectedSslStreamChannel>

Doc from org.xnio.channels.SuspendableWriteChannel.getWriteSetter.

the setter

Annotations
@SuppressWarnings:unchecked
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