Class SdkTLSSocketFactory

  • All Implemented Interfaces:
    org.apache.http.conn.socket.ConnectionSocketFactory, org.apache.http.conn.socket.LayeredConnectionSocketFactory

    public class SdkTLSSocketFactory
    extends org.apache.http.conn.ssl.SSLConnectionSocketFactory
    Used to enforce the preferred TLS protocol during SSL handshake.
    • Method Detail

      • prepareSocket

        protected final void prepareSocket​(SSLSocket socket)
        Used to enforce the preferred TLS protocol during SSL handshake.
        Overrides:
        prepareSocket in class org.apache.http.conn.ssl.SSLConnectionSocketFactory
      • connectSocket

        public Socket connectSocket​(int connectTimeout,
                                    Socket socket,
                                    org.apache.http.HttpHost host,
                                    InetSocketAddress remoteAddress,
                                    InetSocketAddress localAddress,
                                    org.apache.http.protocol.HttpContext context)
                             throws IOException
        Specified by:
        connectSocket in interface org.apache.http.conn.socket.ConnectionSocketFactory
        Overrides:
        connectSocket in class org.apache.http.conn.ssl.SSLConnectionSocketFactory
        Throws:
        IOException