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 Details

    • LOG

      private static final org.slf4j.Logger LOG
    • sslContext

      private final SSLContext sslContext
    • supportedProtocols

      private final String[] supportedProtocols
    • supportedCipherSuites

      private final String[] supportedCipherSuites
    • sslBufferManagement

      private final org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement
    • hostnameVerifier

      private final HostnameVerifier hostnameVerifier
    • tlsSessionValidator

      private final TlsSessionValidator 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 interface org.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 interface org.apache.hc.core5.http.nio.ssl.TlsStrategy
    • applyParameters

      abstract void applyParameters(SSLEngine sslEngine, SSLParameters sslParameters, String[] appProtocols)
    • createTlsDetails

      abstract org.apache.hc.core5.reactor.ssl.TlsDetails createTlsDetails(SSLEngine sslEngine)
    • initializeEngine

      protected void initializeEngine(SSLEngine sslEngine)
    • verifySession

      protected void verifySession(String hostname, SSLSession sslsession) throws SSLException
      Throws:
      SSLException