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.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
ConstructorsConstructorDescriptionSdkTLSSocketFactory
(SSLContext sslContext, HostnameVerifier hostnameVerifier) -
Method Summary
Modifier and TypeMethodDescriptionconnectSocket
(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) protected final void
prepareSocket
(SSLSocket socket) 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
-
Constructor Details
-
SdkTLSSocketFactory
-
-
Method Details
-
prepareSocket
Used to enforce the preferred TLS protocol during SSL handshake.- Overrides:
prepareSocket
in 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:
connectSocket
in interfaceorg.apache.http.conn.socket.ConnectionSocketFactory
- Overrides:
connectSocket
in classorg.apache.http.conn.ssl.SSLConnectionSocketFactory
- Throws:
IOException
-