@ThreadSafe public class SdkTLSSocketFactory extends org.apache.http.conn.ssl.SSLConnectionSocketFactory
Constructor and Description |
---|
SdkTLSSocketFactory(SSLContext sslContext,
HostnameVerifier hostnameVerifier) |
Modifier and Type | Method and Description |
---|---|
Socket |
connectSocket(int connectTimeout,
Socket socket,
org.apache.http.HttpHost host,
InetSocketAddress remoteAddress,
InetSocketAddress localAddress,
org.apache.http.protocol.HttpContext context) |
Socket |
createSocket(org.apache.http.protocol.HttpContext ctx) |
protected void |
prepareSocket(SSLSocket socket)
Used to enforce the preferred TLS protocol during SSL handshake.
|
public SdkTLSSocketFactory(SSLContext sslContext, HostnameVerifier hostnameVerifier)
public Socket createSocket(org.apache.http.protocol.HttpContext ctx) throws IOException
createSocket
in interface org.apache.http.conn.socket.ConnectionSocketFactory
createSocket
in class org.apache.http.conn.ssl.SSLConnectionSocketFactory
IOException
protected final void prepareSocket(SSLSocket socket)
prepareSocket
in class org.apache.http.conn.ssl.SSLConnectionSocketFactory
public Socket connectSocket(int connectTimeout, Socket socket, org.apache.http.HttpHost host, InetSocketAddress remoteAddress, InetSocketAddress localAddress, org.apache.http.protocol.HttpContext context) throws IOException
connectSocket
in interface org.apache.http.conn.socket.ConnectionSocketFactory
connectSocket
in class org.apache.http.conn.ssl.SSLConnectionSocketFactory
IOException
Copyright © 2021. All rights reserved.