- java.lang.Object
-
- org.xnio.ssl.XnioSsl
-
- Direct Known Subclasses:
JsseXnioSsl
public abstract class XnioSsl extends java.lang.ObjectAn SSL provider for XNIO.- Author:
- David M. Lloyd, Flavia Rainone
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.net.ssl.SSLContextsslContextThe SSL context for this instance.protected XnioxnioThe corresponding XNIO instance.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract IoFuture<ConnectedSslStreamChannel>connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Deprecated.IoFuture<ConnectedSslStreamChannel>connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)Deprecated.IoFuture<ConnectedSslStreamChannel>connectSsl(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Deprecated.IoFuture<ConnectedSslStreamChannel>connectSsl(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)Deprecated.abstract AcceptingChannel<SslConnection>createSslConnectionServer(XnioWorker worker, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap)Create a bound TCP SSL server.abstract AcceptingChannel<ConnectedSslStreamChannel>createSslTcpServer(XnioWorker worker, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap)Deprecated.abstract IoFuture<SslConnection>openSslConnection(XnioIoThread ioThread, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioIoThread ioThread, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioIoThread ioThread, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioIoThread ioThread, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)Create an SSL connection to a remote host.abstract IoFuture<SslConnection>openSslConnection(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)Create an SSL connection to a remote host.IoFuture<SslConnection>openSslConnection(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, OptionMap optionMap)Create an SSL connection to a remote host.
-
-
-
Field Detail
-
xnio
protected final Xnio xnio
The corresponding XNIO instance.
-
sslContext
protected final javax.net.ssl.SSLContext sslContext
The SSL context for this instance.
-
-
Method Detail
-
connectSsl
@Deprecated public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.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, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.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, java.net.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, java.net.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, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws java.io.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:
java.io.IOException- if the server could not be created
-
createSslConnectionServer
public abstract AcceptingChannel<SslConnection> createSslConnectionServer(XnioWorker worker, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) throws java.io.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:
java.io.IOException- if the server could not be created
-
-