public class UndertowXnioSsl extends XnioSsl
| Constructor and Description |
|---|
UndertowXnioSsl(Xnio xnio,
OptionMap optionMap)
Construct a new instance.
|
UndertowXnioSsl(Xnio xnio,
OptionMap optionMap,
ByteBufferPool bufferPool)
Construct a new instance.
|
UndertowXnioSsl(Xnio xnio,
OptionMap optionMap,
ByteBufferPool bufferPool,
SSLContext sslContext)
Construct a new instance.
|
UndertowXnioSsl(Xnio xnio,
OptionMap optionMap,
SSLContext sslContext)
Construct a new instance.
|
connectSsl, connectSsl, connectSsl, openSslConnection, openSslConnection, openSslConnection, openSslConnection, openSslConnection, openSslConnectionpublic UndertowXnioSsl(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 UndertowXnioSsl(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 UndertowXnioSsl(Xnio xnio, OptionMap optionMap, ByteBufferPool bufferPool) throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementException
xnio - the XNIO instance to associate withoptionMap - the options for this providerbufferPool - NoSuchProviderException - if the given SSL provider is not foundNoSuchAlgorithmException - if the given SSL algorithm is not supportedKeyManagementException - if the SSL context could not be initializedpublic UndertowXnioSsl(Xnio xnio, OptionMap optionMap, ByteBufferPool bufferPool, SSLContext sslContext)
xnio - the XNIO instance to associate withoptionMap - the options for this providerbufferPool - sslContext - the SSL context to use for this instancepublic SSLContext getSslContext()
public static SSLEngine getSslEngine(SslConnection connection)
public static SslConduit getSslConduit(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 SslConnection wrapExistingConnection(StreamConnection connection, OptionMap optionMap)
public 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 void updateSSLContext(SSLContext context)
context - The new contextpublic 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.