public final class JsseXnioSsl extends XnioSsl
| Constructor and Description |
|---|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap)
Construct a new instance.
|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap,
SSLContext sslContext)
Construct a new instance.
|
public JsseXnioSsl(Xnio xnio, OptionMap optionMap) throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementException
xnio - the XNIO instance to associate withoptionMap - the options for this providerNoSuchProviderException - if the given SSL provider is not foundNoSuchAlgorithmException - if the given SSL algorithm is not supportedKeyManagementException - if the SSL context could not be initializedpublic JsseXnioSsl(Xnio xnio, OptionMap optionMap, SSLContext sslContext)
xnio - the XNIO instance to associate withoptionMap - the options for this providersslContext - the SSL context to use for this instancepublic SSLContext getSslContext()
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, 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, 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, InetSocketAddress bindAddress, 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, InetSocketAddress bindAddress, 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, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener, OptionMap optionMap) throws IOException
XnioSslcreateSslTcpServer in class XnioSslworker - 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 © 2012 JBoss by Red Hat. All Rights Reserved.