@Contract(threading=STATELESS) public class DefaultClientTlsStrategy extends Object
Constructor and Description |
---|
DefaultClientTlsStrategy(SSLContext sslcontext) |
DefaultClientTlsStrategy(SSLContext sslcontext,
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 org.apache.hc.core5.http.nio.ssl.TlsStrategy |
getDefault() |
static org.apache.hc.core5.http.nio.ssl.TlsStrategy |
getSystemDefault() |
protected void |
initializeEngine(SSLEngine sslEngine) |
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) |
protected void |
verifySession(String hostname,
SSLSession sslsession) |
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, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslcontext, HostnameVerifier hostnameVerifier)
public DefaultClientTlsStrategy(SSLContext sslcontext)
public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getDefault()
public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getSystemDefault()
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
protected void initializeEngine(SSLEngine sslEngine)
protected void verifySession(String hostname, SSLSession sslsession) throws SSLException
SSLException
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.