public class UndertowXnioSsl
extends org.xnio.ssl.XnioSsl
Constructor and Description |
---|
UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap) Construct a new instance. |
UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap, ByteBufferPool bufferPool) Construct a new instance. |
UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap, ByteBufferPool bufferPool, SSLContext sslContext) Construct a new instance. |
UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap, SSLContext sslContext) Construct a new instance. |
Modifier and Type | Method and Description |
---|---|
org.xnio.IoFuture<org.xnio.channels.ConnectedSslStreamChannel> | connectSsl(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.channels.ConnectedSslStreamChannel> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap) |
org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection> | createSslConnectionServer(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection>> acceptListener, org.xnio.OptionMap optionMap) |
org.xnio.channels.AcceptingChannel<org.xnio.channels.ConnectedSslStreamChannel> | createSslTcpServer(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.channels.ConnectedSslStreamChannel>> acceptListener, org.xnio.OptionMap optionMap) |
static SslConduit | getSslConduit(org.xnio.ssl.SslConnection connection) |
SSLContext | getSslContext() Get the JSSE SSL context for this provider instance. |
static SSLEngine | getSslEngine(org.xnio.ssl.SslConnection connection) Get the SSL engine for a given connection. |
org.xnio.IoFuture<org.xnio.ssl.SslConnection> | openSslConnection(org.xnio.XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.ssl.SslConnection> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap) |
org.xnio.IoFuture<org.xnio.ssl.SslConnection> | openSslConnection(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.ssl.SslConnection> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap) |
void | updateSSLContext(SSLContext context) Updates the SSLContext that is in use. |
org.xnio.ssl.SslConnection | wrapExistingConnection(org.xnio.StreamConnection connection, org.xnio.OptionMap optionMap) |
public UndertowXnioSsl(org.xnio.Xnio xnio, org.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(org.xnio.Xnio xnio, org.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(org.xnio.Xnio xnio, org.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(org.xnio.Xnio xnio, org.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(org.xnio.ssl.SslConnection connection)
public static SslConduit getSslConduit(org.xnio.ssl.SslConnection connection)
public org.xnio.IoFuture<org.xnio.channels.ConnectedSslStreamChannel> connectSsl(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.channels.ConnectedSslStreamChannel> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap)
connectSsl
in class org.xnio.ssl.XnioSsl
public org.xnio.IoFuture<org.xnio.ssl.SslConnection> openSslConnection(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.ssl.SslConnection> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap)
openSslConnection
in class org.xnio.ssl.XnioSsl
public org.xnio.IoFuture<org.xnio.ssl.SslConnection> openSslConnection(org.xnio.XnioIoThread ioThread, InetSocketAddress bindAddress, InetSocketAddress destination, org.xnio.ChannelListener<? super org.xnio.ssl.SslConnection> openListener, org.xnio.ChannelListener<? super org.xnio.channels.BoundChannel> bindListener, org.xnio.OptionMap optionMap)
openSslConnection
in class org.xnio.ssl.XnioSsl
public org.xnio.ssl.SslConnection wrapExistingConnection(org.xnio.StreamConnection connection, org.xnio.OptionMap optionMap)
public org.xnio.channels.AcceptingChannel<org.xnio.channels.ConnectedSslStreamChannel> createSslTcpServer(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.channels.ConnectedSslStreamChannel>> acceptListener, org.xnio.OptionMap optionMap) throws IOException
createSslTcpServer
in class org.xnio.ssl.XnioSsl
IOException
public void updateSSLContext(SSLContext context)
context
- The new contextpublic org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection> createSslConnectionServer(org.xnio.XnioWorker worker, InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection>> acceptListener, org.xnio.OptionMap optionMap) throws IOException
createSslConnectionServer
in class org.xnio.ssl.XnioSsl
IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.