Class SSLIOSessionStrategy

    • Field Detail

      • ALLOW_ALL_HOSTNAME_VERIFIER

        @Deprecated
        public static final org.apache.http.conn.ssl.X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
        Deprecated.
      • BROWSER_COMPATIBLE_HOSTNAME_VERIFIER

        @Deprecated
        public static final org.apache.http.conn.ssl.X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
        Deprecated.
      • STRICT_HOSTNAME_VERIFIER

        @Deprecated
        public static final org.apache.http.conn.ssl.X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
        Deprecated.
      • sslContext

        private final javax.net.ssl.SSLContext sslContext
      • supportedProtocols

        private final java.lang.String[] supportedProtocols
      • supportedCipherSuites

        private final java.lang.String[] supportedCipherSuites
      • hostnameVerifier

        private final javax.net.ssl.HostnameVerifier hostnameVerifier
    • Constructor Detail

      • SSLIOSessionStrategy

        @Deprecated
        public SSLIOSessionStrategy​(javax.net.ssl.SSLContext sslcontext,
                                    org.apache.http.conn.ssl.X509HostnameVerifier hostnameVerifier)
        Deprecated.
        (4.1)
      • SSLIOSessionStrategy

        public SSLIOSessionStrategy​(javax.net.ssl.SSLContext sslContext,
                                    java.lang.String[] supportedProtocols,
                                    java.lang.String[] supportedCipherSuites,
                                    javax.net.ssl.HostnameVerifier hostnameVerifier)
        Since:
        4.1
      • SSLIOSessionStrategy

        public SSLIOSessionStrategy​(javax.net.ssl.SSLContext sslcontext,
                                    javax.net.ssl.HostnameVerifier hostnameVerifier)
        Since:
        4.1
      • SSLIOSessionStrategy

        public SSLIOSessionStrategy​(javax.net.ssl.SSLContext sslcontext)
    • Method Detail

      • split

        private static java.lang.String[] split​(java.lang.String s)
      • getDefaultHostnameVerifier

        public static javax.net.ssl.HostnameVerifier getDefaultHostnameVerifier()
        Since:
        4.1
      • upgrade

        public org.apache.http.nio.reactor.ssl.SSLIOSession upgrade​(org.apache.http.HttpHost host,
                                                                    org.apache.http.nio.reactor.IOSession iosession)
                                                             throws java.io.IOException
        Description copied from interface: SchemeIOSessionStrategy
        Decorates the original IOSession with a transport level security protocol implementation.
        Specified by:
        upgrade in interface SchemeIOSessionStrategy
        Parameters:
        host - the target host.
        iosession - the I/O session.
        Returns:
        upgraded I/O session.
        Throws:
        java.io.IOException
      • initializeEngine

        protected void initializeEngine​(javax.net.ssl.SSLEngine engine)
      • verifySession

        protected void verifySession​(org.apache.http.HttpHost host,
                                     org.apache.http.nio.reactor.IOSession iosession,
                                     javax.net.ssl.SSLSession sslsession)
                              throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException