public class UndertowXnioSsl
extends org.xnio.ssl.XnioSsl
Constructor | 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,
javax.net.ssl.SSLContext sslContext) |
Construct a new instance.
|
UndertowXnioSsl(org.xnio.Xnio xnio,
org.xnio.OptionMap optionMap,
javax.net.ssl.SSLContext sslContext) |
Construct a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
org.xnio.IoFuture<org.xnio.channels.ConnectedSslStreamChannel> |
connectSsl(org.xnio.XnioWorker worker,
java.net.InetSocketAddress bindAddress,
java.net.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,
java.net.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,
java.net.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) |
|
javax.net.ssl.SSLContext |
getSslContext() |
Get the JSSE SSL context for this provider instance.
|
static javax.net.ssl.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,
java.net.InetSocketAddress bindAddress,
java.net.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,
java.net.InetSocketAddress bindAddress,
java.net.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(javax.net.ssl.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 java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException
xnio
- the XNIO instance to associate withoptionMap
- the options for this providerjava.security.NoSuchProviderException
- if the given SSL provider is not foundjava.security.NoSuchAlgorithmException
- if the given SSL algorithm is not supportedjava.security.KeyManagementException
- if the SSL context could not be initializedpublic UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap, javax.net.ssl.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 java.security.NoSuchProviderException, java.security.NoSuchAlgorithmException, java.security.KeyManagementException
xnio
- the XNIO instance to associate withoptionMap
- the options for this providerbufferPool
- java.security.NoSuchProviderException
- if the given SSL provider is not foundjava.security.NoSuchAlgorithmException
- if the given SSL algorithm is not supportedjava.security.KeyManagementException
- if the SSL context could not be initializedpublic UndertowXnioSsl(org.xnio.Xnio xnio, org.xnio.OptionMap optionMap, ByteBufferPool bufferPool, javax.net.ssl.SSLContext sslContext)
xnio
- the XNIO instance to associate withoptionMap
- the options for this providerbufferPool
- sslContext
- the SSL context to use for this instancepublic javax.net.ssl.SSLContext getSslContext()
public static javax.net.ssl.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, java.net.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, java.net.InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.channels.ConnectedSslStreamChannel>> acceptListener, org.xnio.OptionMap optionMap) throws java.io.IOException
createSslTcpServer
in class org.xnio.ssl.XnioSsl
java.io.IOException
public void updateSSLContext(javax.net.ssl.SSLContext context)
context
- The new contextpublic org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection> createSslConnectionServer(org.xnio.XnioWorker worker, java.net.InetSocketAddress bindAddress, org.xnio.ChannelListener<? super org.xnio.channels.AcceptingChannel<org.xnio.ssl.SslConnection>> acceptListener, org.xnio.OptionMap optionMap) throws java.io.IOException
createSslConnectionServer
in class org.xnio.ssl.XnioSsl
java.io.IOException
Copyright © 2018. All rights reserved.