Module 
Package org.xnio.ssl

Class XnioSsl

    • Field Detail

      • xnio

        protected final Xnio xnio
        The corresponding XNIO instance.
      • sslContext

        protected final javax.net.ssl.SSLContext sslContext
        The SSL context for this instance.
    • Constructor Detail

      • XnioSsl

        protected XnioSsl​(Xnio xnio,
                          javax.net.ssl.SSLContext sslContext,
                          OptionMap optionMap)
        Construct a new instance.
        Parameters:
        xnio - the XNIO instance
        sslContext -
        optionMap - the option map to configure this provider
    • Method Detail

      • connectSsl

        @Deprecated
        public IoFuture<ConnectedSslStreamChannel> connectSsl​(XnioWorker worker,
                                                              java.net.InetSocketAddress destination,
                                                              ChannelListener<? super ConnectedSslStreamChannel> openListener,
                                                              OptionMap optionMap)
        Deprecated.
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • connectSsl

        @Deprecated
        public IoFuture<ConnectedSslStreamChannel> connectSsl​(XnioWorker worker,
                                                              java.net.InetSocketAddress bindAddress,
                                                              java.net.InetSocketAddress destination,
                                                              ChannelListener<? super ConnectedSslStreamChannel> openListener,
                                                              OptionMap optionMap)
        Deprecated.
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • connectSsl

        @Deprecated
        public abstract IoFuture<ConnectedSslStreamChannel> connectSsl​(XnioWorker worker,
                                                                       java.net.InetSocketAddress bindAddress,
                                                                       java.net.InetSocketAddress destination,
                                                                       ChannelListener<? super ConnectedSslStreamChannel> openListener,
                                                                       ChannelListener<? super BoundChannel> bindListener,
                                                                       OptionMap optionMap)
        Deprecated.
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        bindListener - the bind listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioWorker worker,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioIoThread ioThread,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        ioThread - the IO thread to use
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioWorker worker,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         ChannelListener<? super BoundChannel> bindListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        destination - the destination connection address
        openListener - the initial open-connection listener
        bindListener - the bind listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioIoThread ioThread,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         ChannelListener<? super BoundChannel> bindListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        ioThread - the IO Thread to use
        destination - the destination connection address
        openListener - the initial open-connection listener
        bindListener - the bind listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioWorker worker,
                                                         java.net.InetSocketAddress bindAddress,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public IoFuture<SslConnection> openSslConnection​(XnioIoThread ioThread,
                                                         java.net.InetSocketAddress bindAddress,
                                                         java.net.InetSocketAddress destination,
                                                         ChannelListener<? super SslConnection> openListener,
                                                         OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        ioThread - the IO Thread to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public abstract IoFuture<SslConnection> openSslConnection​(XnioWorker worker,
                                                                  java.net.InetSocketAddress bindAddress,
                                                                  java.net.InetSocketAddress destination,
                                                                  ChannelListener<? super SslConnection> openListener,
                                                                  ChannelListener<? super BoundChannel> bindListener,
                                                                  OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        worker - the worker to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        bindListener - the bind listener
        optionMap - the option map
        Returns:
        the SSL connection
      • openSslConnection

        public abstract IoFuture<SslConnection> openSslConnection​(XnioIoThread ioThread,
                                                                  java.net.InetSocketAddress bindAddress,
                                                                  java.net.InetSocketAddress destination,
                                                                  ChannelListener<? super SslConnection> openListener,
                                                                  ChannelListener<? super BoundChannel> bindListener,
                                                                  OptionMap optionMap)
        Create an SSL connection to a remote host.
        Parameters:
        ioThread - the IO Thread to use
        bindAddress - the local bind address
        destination - the destination connection address
        openListener - the initial open-connection listener
        bindListener - the bind listener
        optionMap - the option map
        Returns:
        the SSL connection
      • createSslTcpServer

        @Deprecated
        public abstract AcceptingChannel<ConnectedSslStreamChannel> createSslTcpServer​(XnioWorker worker,
                                                                                       java.net.InetSocketAddress bindAddress,
                                                                                       ChannelListener<? super AcceptingChannel<ConnectedSslStreamChannel>> acceptListener,
                                                                                       OptionMap optionMap)
                                                                                throws java.io.IOException
        Deprecated.
        Create a bound TCP SSL server.
        Parameters:
        worker - the worker to use
        bindAddress - the address to bind to
        acceptListener - the initial accept listener
        optionMap - the initial configuration for the server
        Returns:
        the unbound TCP SSL server
        Throws:
        java.io.IOException - if the server could not be created
      • createSslConnectionServer

        public abstract AcceptingChannel<SslConnection> createSslConnectionServer​(XnioWorker worker,
                                                                                  java.net.InetSocketAddress bindAddress,
                                                                                  ChannelListener<? super AcceptingChannel<SslConnection>> acceptListener,
                                                                                  OptionMap optionMap)
                                                                           throws java.io.IOException
        Create a bound TCP SSL server.
        Parameters:
        worker - the worker to use
        bindAddress - the address to bind to
        acceptListener - the initial accept listener
        optionMap - the initial configuration for the server
        Returns:
        the unbound TCP SSL server
        Throws:
        java.io.IOException - if the server could not be created