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.
|
connectSsl, connectSsl, connectSsl, openSslConnection, openSslConnection, openSslConnection, openSslConnection, openSslConnection, openSslConnection
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 static SSLEngine getSslEngine(SslConnection connection)
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSsl
connectSsl
in class XnioSsl
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSsl
openSslConnection
in class XnioSsl
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option mappublic IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSsl
openSslConnection
in class XnioSsl
ioThread
- the IO Thread 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
XnioSsl
createSslTcpServer
in class XnioSsl
worker
- 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 createdpublic AcceptingChannel<SslConnection> createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) throws IOException
XnioSsl
createSslConnectionServer
in class XnioSsl
worker
- 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 © 2016 JBoss by Red Hat. All rights reserved.