@Contract(threading=STATELESS) public class DefaultClientTlsStrategy extends Object
Constructor and Description |
---|
DefaultClientTlsStrategy(SSLContext sslContext) |
DefaultClientTlsStrategy(SSLContext sslContext,
HostnameVerificationPolicy hostnameVerificationPolicy,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement,
HostnameVerificationPolicy hostnameVerificationPolicy,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier) |
DefaultClientTlsStrategy(SSLContext sslContext,
String[] supportedProtocols,
String[] supportedCipherSuites,
org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement,
HostnameVerifier hostnameVerifier,
org.apache.hc.core5.function.Factory<SSLEngine,org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
|
Modifier and Type | Method and Description |
---|---|
static DefaultClientTlsStrategy |
createDefault() |
static DefaultClientTlsStrategy |
createSystemDefault() |
static org.apache.hc.core5.http.nio.ssl.TlsStrategy |
getDefault()
Deprecated.
Use
createDefault() . |
static org.apache.hc.core5.http.nio.ssl.TlsStrategy |
getSystemDefault()
Deprecated.
|
protected void |
initializeEngine(SSLEngine sslEngine) |
protected void |
initializeSocket(SSLSocket socket) |
SSLSocket |
upgrade(Socket socket,
String target,
int port,
Object attachment,
org.apache.hc.core5.http.protocol.HttpContext context)
Upgrades the given plain socket and executes the TLS handshake over it.
|
boolean |
upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer tlsSession,
org.apache.hc.core5.http.HttpHost host,
SocketAddress localAddress,
SocketAddress remoteAddress,
Object attachment,
org.apache.hc.core5.util.Timeout handshakeTimeout)
|
void |
upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer tlsSession,
org.apache.hc.core5.net.NamedEndpoint endpoint,
Object attachment,
org.apache.hc.core5.util.Timeout handshakeTimeout,
org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ssl.TransportSecurityLayer> callback) |
protected void |
verifySession(String hostname,
SSLSession sslsession) |
@Deprecated public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier, org.apache.hc.core5.function.Factory<SSLEngine,org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerificationPolicy hostnameVerificationPolicy, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext, HostnameVerificationPolicy hostnameVerificationPolicy, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslContext)
public static DefaultClientTlsStrategy createDefault()
public static DefaultClientTlsStrategy createSystemDefault()
@Deprecated public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getDefault()
createDefault()
.@Deprecated public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getSystemDefault()
createSystemDefault()
.@Deprecated public boolean upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer tlsSession, org.apache.hc.core5.http.HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, org.apache.hc.core5.util.Timeout handshakeTimeout)
upgrade
in interface org.apache.hc.core5.http.nio.ssl.TlsStrategy
public void upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer tlsSession, org.apache.hc.core5.net.NamedEndpoint endpoint, Object attachment, org.apache.hc.core5.util.Timeout handshakeTimeout, org.apache.hc.core5.concurrent.FutureCallback<org.apache.hc.core5.reactor.ssl.TransportSecurityLayer> callback)
upgrade
in interface org.apache.hc.core5.http.nio.ssl.TlsStrategy
protected void initializeEngine(SSLEngine sslEngine)
protected void initializeSocket(SSLSocket socket)
protected void verifySession(String hostname, SSLSession sslsession) throws SSLException
SSLException
public SSLSocket upgrade(Socket socket, String target, int port, Object attachment, org.apache.hc.core5.http.protocol.HttpContext context) throws IOException
TlsSocketStrategy
upgrade
in interface TlsSocketStrategy
socket
- the existing plain sockettarget
- the name of the target host.port
- the port to connect to on the target host.attachment
- connect request attachment.context
- the actual HTTP context.IOException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.