
public final class JsseXnioSsl extends XnioSsl
| Constructor and Description |
|---|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap)
Construct a new instance.
|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap,
javax.net.ssl.SSLContext sslContext)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
IoFuture<ConnectedSslStreamChannel> |
connectSsl(XnioWorker worker,
java.net.InetSocketAddress destination,
ChannelListener<? super ConnectedSslStreamChannel> openListener,
OptionMap optionMap)
Create an SSL connection to a remote host.
|
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.
|
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.
|
AcceptingChannel<ConnectedSslStreamChannel> |
createSslTcpServer(XnioWorker worker,
java.net.InetSocketAddress bindAddress,
ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener,
OptionMap optionMap)
Create a bound TCP SSL server.
|
javax.net.ssl.SSLContext |
getSslContext()
Get the JSSE SSL context for this provider instance.
|
public JsseXnioSsl(Xnio xnio, OptionMap optionMap) throws java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException
xnio - the XNIO instance to associate withoptionMap - the options for this providerjava.security.NoSuchProviderException - if the given SSL provider is not foundjava.security.NoSuchAlgorithmException - if the given SSL algorithm is not supportedjava.security.KeyManagementException - if the SSL context could not be initializedpublic javax.net.ssl.SSLContext getSslContext()
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
XnioSslconnectSsl in class XnioSslworker - the worker to usedestination - the destination connection addressopenListener - the initial open-connection listeneroptionMap - the option mappublic IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSslconnectSsl in class XnioSslworker - the worker to usedestination - the destination connection addressopenListener - the initial open-connection listenerbindListener - the bind listeneroptionMap - the option mappublic IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
XnioSslconnectSsl in class XnioSslworker - the worker to usebindAddress - the local bind addressdestination - the destination connection addressopenListener - the initial open-connection listeneroptionMap - the option mappublic IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, java.net.InetSocketAddress bindAddress, java.net.InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSslconnectSsl in class XnioSslworker - the worker to usebindAddress - the local bind addressdestination - the destination connection addressopenListener - the initial open-connection listenerbindListener - the bind listeneroptionMap - the option mappublic AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer(XnioWorker worker, java.net.InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws java.io.IOException
XnioSslcreateSslTcpServer in class XnioSslworker - 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.