|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xnio.ssl.XnioSsl
org.xnio.ssl.JsseXnioSsl
public final class JsseXnioSsl
An XNIO SSL provider based on JSSE. Works with any XNIO provider.
Field Summary |
---|
Fields inherited from class org.xnio.ssl.XnioSsl |
---|
xnio |
Constructor Summary | |
---|---|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap)
Construct a new instance. |
|
JsseXnioSsl(Xnio xnio,
OptionMap optionMap,
SSLContext sslContext)
Construct a new instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsseXnioSsl(Xnio xnio, OptionMap optionMap) throws NoSuchProviderException, NoSuchAlgorithmException, KeyManagementException
xnio
- the XNIO instance to associate withoptionMap
- the options for this provider
NoSuchProviderException
- if the given SSL provider is not found
NoSuchAlgorithmException
- if the given SSL algorithm is not supported
KeyManagementException
- 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 instanceMethod Detail |
---|
public SSLContext getSslContext()
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
XnioSsl
connectSsl
in class XnioSsl
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, ChannelListener<? super BoundChannel> bindListener, OptionMap optionMap)
XnioSsl
connectSsl
in class XnioSsl
worker
- the worker to usedestination
- the destination connection addressopenListener
- the initial open-connection listenerbindListener
- the bind listeneroptionMap
- the option map
public IoFuture<ConnectedSslStreamChannel> connectSsl(XnioWorker worker, InetSocketAddress bindAddress, InetSocketAddress destination, ChannelListener<? super ConnectedSslStreamChannel> openListener, OptionMap optionMap)
XnioSsl
connectSsl
in class XnioSsl
worker
- the worker to usebindAddress
- the local bind addressdestination
- the destination connection addressopenListener
- the initial open-connection listeneroptionMap
- the option map
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 map
public 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 server
IOException
- if the server could not be created
|
XNIO API 3.0.4.GA | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |