java.lang.Object
org.xnio.ssl.XnioSsl
- Direct Known Subclasses:
JsseXnioSsl
An SSL provider for XNIO.
- Author:
- David M. Lloyd, Flavia Rainone
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SSLContext
The SSL context for this instance.protected final Xnio
The corresponding XNIO instance. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
XnioSsl
(Xnio xnio, SSLContext sslContext, OptionMap optionMap) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionabstract IoFuture<ConnectedSslStreamChannel>
connectSsl
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.connectSsl
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.connectSsl
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.connectSsl
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.abstract AcceptingChannel<SslConnection>
createSslConnectionServer
(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) Create a bound TCP SSL server.abstract AcceptingChannel<ConnectedSslStreamChannel>
createSslTcpServer
(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) Deprecated.abstract IoFuture<SslConnection>
openSslConnection
(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.abstract IoFuture<SslConnection>
openSslConnection
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.openSslConnection
(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.
-
Field Details
-
xnio
The corresponding XNIO instance. -
sslContext
The SSL context for this instance.
-
-
Constructor Details
-
XnioSsl
Construct a new instance.- Parameters:
xnio
- the XNIO instancesslContext
-optionMap
- the option map to configure this provider
-
-
Method Details
-
connectSsl
@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
connectSsl
@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map- Returns:
- the SSL connection
-
connectSsl
@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap) Deprecated.Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
connectSsl
@Deprecated public abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Deprecated.Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
ioThread
- the IO thread to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
ioThread
- the IO Thread to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
ioThread
- the IO Thread to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public abstract IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map- Returns:
- the SSL connection
-
openSslConnection
public abstract IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap) Create an SSL connection to a remote host.- Parameters:
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- Returns:
- the SSL connection
-
createSslTcpServer
@Deprecated public abstract AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws IOException Deprecated.Create a bound TCP SSL server.- Parameters:
worker
- the worker to usebindAddress
- the address to bind toacceptListener
- the initial accept listeneroptionMap
- the initial configuration for the server- Returns:
- the unbound TCP SSL server
- Throws:
IOException
- if the server could not be created
-
createSslConnectionServer
public abstract AcceptingChannel<SslConnection> createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) throws IOException Create a bound TCP SSL server.- Parameters:
worker
- the worker to usebindAddress
- the address to bind toacceptListener
- the initial accept listeneroptionMap
- the initial configuration for the server- Returns:
- the unbound TCP SSL server
- Throws:
IOException
- if the server could not be created
-