Class DefaultClientTlsStrategy
java.lang.Object
org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.ssl.TlsStrategy
TLS upgrade strategy for non-blocking client connections.
- Since:
- 5.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClientTlsStrategy(SSLContext sslContext) 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) Deprecated.DefaultClientTlsStrategy(SSLContext sslContext, HostnameVerifier hostnameVerifier) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.hc.core5.http.nio.ssl.TlsStrategystatic org.apache.hc.core5.http.nio.ssl.TlsStrategyprotected voidinitializeEngine(SSLEngine sslEngine) booleanupgrade(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) Deprecated.useTlsStrategy.upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)voidupgrade(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 voidverifySession(String hostname, SSLSession sslsession)
-
Constructor Details
-
DefaultClientTlsStrategy
@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) -
DefaultClientTlsStrategy
public DefaultClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier) -
DefaultClientTlsStrategy
-
DefaultClientTlsStrategy
-
-
Method Details
-
getDefault
public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getDefault() -
getSystemDefault
public static org.apache.hc.core5.http.nio.ssl.TlsStrategy getSystemDefault() -
upgrade
@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) Deprecated.useTlsStrategy.upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)- Specified by:
upgradein interfaceorg.apache.hc.core5.http.nio.ssl.TlsStrategy
-
upgrade
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) - Specified by:
upgradein interfaceorg.apache.hc.core5.http.nio.ssl.TlsStrategy
-
initializeEngine
-
verifySession
- Throws:
SSLException
-
DefaultClientTlsStrategy(SSLContext, String[], String[], SSLBufferMode, HostnameVerifier)