Package org.apache.hc.client5.http.ssl
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 HostnameVerifier
private static final org.slf4j.Logger
private final org.apache.hc.core5.reactor.ssl.SSLBufferMode
private final SSLContext
private 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 void
applyParameters
(SSLEngine sslEngine, SSLParameters sslParameters, String[] appProtocols) (package private) abstract org.apache.hc.core5.reactor.ssl.TlsDetails
createTlsDetails
(SSLEngine sslEngine) 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) Deprecated.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)
-
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:
upgrade
in 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:
upgrade
in 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)