public final class JsseXnioSsl extends XnioSsl
| Modifier and Type | Field and Description |
|---|---|
static boolean |
NEW_IMPL |
| 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, openSslConnectionpublic 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)
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 IoFuture<SslConnection> openSslConnection(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSslopenSslConnection 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 IoFuture<SslConnection> openSslConnection(XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super SslConnection> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSslopenSslConnection in class XnioSslioThread - 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
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 createdpublic AcceptingChannel<SslConnection> createSslConnectionServer(XnioWorker worker, InetSocketAddress bindAddress, ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener, OptionMap optionMap) throws IOException
XnioSslcreateSslConnectionServer 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 © 2017 JBoss by Red Hat. All rights reserved.