public abstract class XnioSsl
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.net.ssl.SSLContext |
sslContext
The SSL context for this instance.
|
protected Xnio |
xnio
The corresponding XNIO instance.
|
Modifier | Constructor and Description |
---|---|
protected |
XnioSsl(Xnio xnio,
javax.net.ssl.SSLContext sslContext,
OptionMap optionMap)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
abstract IoFuture<ConnectedSslStreamChannel> |
connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
abstract IoFuture<ConnectedSslStreamChannel> |
connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
abstract IoFuture<ConnectedSslStreamChannel> |
connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
ChannelListener<? super BoundChannel> bindListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
abstract IoFuture<ConnectedSslStreamChannel> |
connectSsl(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
abstract AcceptingChannel<ConnectedSslStreamChannel> |
createSslTcpServer(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener,
OptionMap optionMap)
Create a bound TCP SSL server.
|
protected final Xnio xnio
protected final javax.net.ssl.SSLContext sslContext
public abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.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 mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.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 mappublic abstract IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.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 abstract AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer(XnioWorker worker, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws java.io.IOException
worker
- the worker to usebindAddress
- the address to bind toacceptListener
- the initial accept listeneroptionMap
- the initial configuration for the serverjava.io.IOException
- if the server could not be createdCopyright © 2010 JBoss, a division of Red Hat, Inc.