Class VeniceClientTlsStrategy

java.lang.Object
org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy
com.linkedin.venice.httpclient5.VeniceClientTlsStrategy
All Implemented Interfaces:
org.apache.hc.core5.http.nio.ssl.TlsStrategy

public class VeniceClientTlsStrategy extends org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy
This class copies most of the logic from DefaultClientTlsStrategy and AbstractClientTlsStrategy to get rid of the cipher check to be backward compatible.
  • Constructor Summary

    Constructors
    Constructor
    Description
    VeniceClientTlsStrategy(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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    boolean
    upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer arg0, org.apache.hc.core5.http.HttpHost arg1, SocketAddress arg2, SocketAddress arg3, Object arg4, org.apache.hc.core5.util.Timeout arg5)
    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
     

    Methods inherited from class org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy

    getDefault, getSystemDefault

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VeniceClientTlsStrategy

      public VeniceClientTlsStrategy(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)
  • Method Details

    • 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
    • upgrade

      @Deprecated public boolean upgrade(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer arg0, org.apache.hc.core5.http.HttpHost arg1, SocketAddress arg2, SocketAddress arg3, Object arg4, org.apache.hc.core5.util.Timeout arg5)
      Deprecated.
      Specified by:
      upgrade in interface org.apache.hc.core5.http.nio.ssl.TlsStrategy
    • initializeEngine

      protected void initializeEngine(SSLEngine arg0)
    • verifySession

      protected void verifySession(String arg0, SSLSession arg1) throws SSLException
      Throws:
      SSLException