Package org.xnio.channels
Class AssembledSslChannel
java.lang.Object
org.xnio.channels.AssembledChannel
org.xnio.channels.AssembledConnectedChannel
org.xnio.channels.AssembledSslChannel
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,InterruptibleChannel,BoundChannel,CloseableChannel,Configurable,ConnectedChannel,SslChannel
An assembled SSL channel.
- Author:
- David M. Lloyd
-
Field Summary
Fields inherited from interface org.xnio.channels.Configurable
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionAssembledSslChannel(SuspendableReadChannel readChannel, SuspendableWriteChannel writeChannel) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionChannelListener.Setter<? extends AssembledSslChannel>Get the setter which can be used to change the close listener for this channel.ChannelListener.Setter<? extends AssembledSslChannel>Get the setter which can be used to change the handshake listener for this channel.Get the currentSSLSessionfor this channel.voidStart or restart the SSL/TLS handshake.Methods inherited from class org.xnio.channels.AssembledConnectedChannel
getLocalAddress, getLocalAddress, getPeerAddress, getPeerAddressMethods inherited from class org.xnio.channels.AssembledChannel
close, getIoThread, getOption, getWorker, isOpen, setOption, supportsOptionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xnio.channels.BoundChannel
getLocalAddress, getLocalAddressMethods inherited from interface org.xnio.channels.CloseableChannel
close, getIoThread, getWorkerMethods inherited from interface org.xnio.channels.Configurable
getOption, setOption, supportsOptionMethods inherited from interface org.xnio.channels.ConnectedChannel
getPeerAddress, getPeerAddress
-
Constructor Details
-
AssembledSslChannel
public AssembledSslChannel(SuspendableReadChannel readChannel, SuspendableWriteChannel writeChannel) Construct a new instance. At least one side must be an SSL channel.- Parameters:
readChannel- the read channelwriteChannel- the write channel
-
-
Method Details
-
startHandshake
Description copied from interface:SslChannelStart 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.- Specified by:
startHandshakein interfaceSslChannel- Throws:
IOException- if an I/O error occurs
-
getSslSession
Description copied from interface:SslChannelGet the currentSSLSessionfor this channel.- Specified by:
getSslSessionin interfaceSslChannel- Returns:
- the current
SSLSession
-
getHandshakeSetter
Description copied from interface:SslChannelGet the setter which can be used to change the handshake listener for this channel.- Specified by:
getHandshakeSetterin interfaceSslChannel- Returns:
- the setter
-
getCloseSetter
Description copied from interface:CloseableChannelGet 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.- Specified by:
getCloseSetterin interfaceBoundChannel- Specified by:
getCloseSetterin interfaceCloseableChannel- Specified by:
getCloseSetterin interfaceConnectedChannel- Specified by:
getCloseSetterin interfaceSslChannel- Overrides:
getCloseSetterin classAssembledConnectedChannel- Returns:
- the setter
-