Package com.linkedin.venice.httpclient5
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
ConstructorDescriptionVeniceClientTlsStrategy
(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 TypeMethodDescriptionprotected void
initializeEngine
(SSLEngine arg0) 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
verifySession
(String arg0, SSLSession arg1) Methods inherited from class org.apache.hc.client5.http.ssl.DefaultClientTlsStrategy
getDefault, getSystemDefault
-
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 interfaceorg.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 interfaceorg.apache.hc.core5.http.nio.ssl.TlsStrategy
-
initializeEngine
-
verifySession
- Throws:
SSLException
-