Class 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​(javax.net.ssl.SSLContext sslContext, java.lang.String[] supportedProtocols, java.lang.String[] supportedCipherSuites, org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement, javax.net.ssl.HostnameVerifier hostnameVerifier, org.apache.hc.core5.function.Factory<javax.net.ssl.SSLEngine,​org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)  
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected void initializeEngine​(javax.net.ssl.SSLEngine arg0)  
      boolean upgrade​(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer arg0, org.apache.hc.core5.http.HttpHost arg1, java.net.SocketAddress arg2, java.net.SocketAddress arg3, java.lang.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, java.lang.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​(java.lang.String arg0, javax.net.ssl.SSLSession arg1)  
      • 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 Detail

      • VeniceClientTlsStrategy

        public VeniceClientTlsStrategy​(javax.net.ssl.SSLContext sslContext,
                                       java.lang.String[] supportedProtocols,
                                       java.lang.String[] supportedCipherSuites,
                                       org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferManagement,
                                       javax.net.ssl.HostnameVerifier hostnameVerifier,
                                       org.apache.hc.core5.function.Factory<javax.net.ssl.SSLEngine,​org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
    • Method Detail

      • upgrade

        public void upgrade​(org.apache.hc.core5.reactor.ssl.TransportSecurityLayer tlsSession,
                            org.apache.hc.core5.net.NamedEndpoint endpoint,
                            java.lang.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,
                               java.net.SocketAddress arg2,
                               java.net.SocketAddress arg3,
                               java.lang.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​(javax.net.ssl.SSLEngine arg0)
      • verifySession

        protected void verifySession​(java.lang.String arg0,
                                     javax.net.ssl.SSLSession arg1)
                              throws javax.net.ssl.SSLException
        Throws:
        javax.net.ssl.SSLException