Package com.amazonaws.http.conn.ssl
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.SSLConnectionSocketFactoryUsed to enforce the preferred TLS protocol during SSL handshake.
-
-
Constructor Summary
Constructors Constructor Description SdkTLSSocketFactory(SSLContext sslContext, HostnameVerifier hostnameVerifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketconnectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context)protected voidprepareSocket(SSLSocket socket)Used to enforce the preferred TLS protocol during SSL handshake.
-
-
-
Constructor Detail
-
SdkTLSSocketFactory
public SdkTLSSocketFactory(SSLContext sslContext, HostnameVerifier hostnameVerifier)
-
-
Method Detail
-
prepareSocket
protected final void prepareSocket(SSLSocket socket)
Used to enforce the preferred TLS protocol during SSL handshake.- Overrides:
prepareSocketin classorg.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:
connectSocketin interfaceorg.apache.http.conn.socket.ConnectionSocketFactory- Overrides:
connectSocketin classorg.apache.http.conn.ssl.SSLConnectionSocketFactory- Throws:
IOException
-
-