Class AbstractClientTlsStrategy
java.lang.Object
org.apache.hc.client5.http.ssl.AbstractClientTlsStrategy
- All Implemented Interfaces:
org.apache.hc.core5.http.nio.ssl.TlsStrategy
- Direct Known Subclasses:
DefaultClientTlsStrategy
@Contract(threading=STATELESS)
abstract class AbstractClientTlsStrategy
extends Object
implements org.apache.hc.core5.http.nio.ssl.TlsStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HostnameVerifierprivate static final org.slf4j.Loggerprivate final org.apache.hc.core5.reactor.ssl.SSLBufferModeprivate final SSLContextprivate final String[]private final String[]private final TlsSessionValidator -
Constructor Summary
ConstructorsConstructorDescriptionAbstractClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier) -
Method Summary
Modifier and TypeMethodDescription(package private) abstract voidapplyParameters(SSLEngine sslEngine, SSLParameters sslParameters, String[] appProtocols) (package private) abstract org.apache.hc.core5.reactor.ssl.TlsDetailscreateTlsDetails(SSLEngine sslEngine) protected 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.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)
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
sslContext
-
supportedProtocols
-
supportedCipherSuites
-
sslBufferManagement
private final org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement -
hostnameVerifier
-
tlsSessionValidator
-
-
Constructor Details
-
AbstractClientTlsStrategy
AbstractClientTlsStrategy(SSLContext sslContext, String[] supportedProtocols, String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, HostnameVerifier hostnameVerifier)
-
-
Method Details
-
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) - 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
-
applyParameters
abstract void applyParameters(SSLEngine sslEngine, SSLParameters sslParameters, String[] appProtocols) -
createTlsDetails
-
initializeEngine
-
verifySession
- Throws:
SSLException
-
upgrade(TransportSecurityLayer, NamedEndpoint, Object, Timeout, FutureCallback)