public abstract class XnioSsl extends Object
Modifier and Type | Field and Description |
---|---|
protected SSLContext |
sslContext
The SSL context for this instance.
|
protected Xnio |
xnio
The corresponding XNIO instance.
|
Modifier | Constructor and Description |
---|---|
protected |
XnioSsl(Xnio xnio,
SSLContext sslContext,
OptionMap optionMap)
Construct a new instance.
|
protected final Xnio xnio
protected final SSLContext sslContext
protected XnioSsl(Xnio xnio, SSLContext sslContext, OptionMap optionMap)
xnio
- the XNIO instancesslContext
- optionMap
- the option map to configure this provider@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map@Deprecated public abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)
ioThread
- the IO thread to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
ioThread
- the IO Thread to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)
ioThread
- the IO Thread to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option mappublic abstract IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic abstract IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
ioThread
- the IO Thread to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map@Deprecated public abstract AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws IOException
worker
- the worker to usebindAddress
- the address to bind toacceptListener
- the initial accept listeneroptionMap
- the initial configuration for the serverIOException
- if the server could not be createdpublic abstract AcceptingChannel<SslConnection> createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) throws IOException
worker
- the worker to usebindAddress
- the address to bind toacceptListener
- the initial accept listeneroptionMap
- the initial configuration for the serverIOException
- if the server could not be createdCopyright © 2017 JBoss by Red Hat. All rights reserved.