Class SdkTLSSocketFactory

java.lang.Object
org.apache.http.conn.ssl.SSLConnectionSocketFactory
com.amazonaws.http.conn.ssl.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.
  • Field Summary

    Fields inherited from class org.apache.http.conn.ssl.SSLConnectionSocketFactory

    ALLOW_ALL_HOSTNAME_VERIFIER, BROWSER_COMPATIBLE_HOSTNAME_VERIFIER, SSL, SSLV2, STRICT_HOSTNAME_VERIFIER, TLS
  • Constructor Summary

    Constructors
    Constructor
    Description
    SdkTLSSocketFactory(SSLContext sslContext, HostnameVerifier hostnameVerifier)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    connectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)
     
    protected final void
    Used to enforce the preferred TLS protocol during SSL handshake.

    Methods inherited from class org.apache.http.conn.ssl.SSLConnectionSocketFactory

    createLayeredSocket, createSocket, getDefaultHostnameVerifier, getSocketFactory, getSystemSocketFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • 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