Package com.linkedin.venice.httpclient5
Class VeniceClientTlsStrategyBuilder
java.lang.Object
com.linkedin.venice.httpclient5.VeniceClientTlsStrategyBuilder
This class copies most of the logic from
ClientTlsStrategyBuilder
to get rid of the cipher check while using
http/2 in TlsCiphers
to be backward compatible.
The only change is in function: build()
, and this class will return VeniceClientTlsStrategy
instead of DefaultClientTlsStrategy
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.nio.ssl.TlsStrategy
build()
create()
setCiphers
(String... ciphers) Assigns enabled ciphers.setHostnameVerifier
(HostnameVerifier hostnameVerifier) AssignsHostnameVerifier
instance.setSslBufferMode
(org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferMode) AssignsSSLBufferMode
value.setSslContext
(SSLContext sslContext) AssignsSSLContext
instance.setTlsDetailsFactory
(org.apache.hc.core5.function.Factory<SSLEngine, org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory) AssignsTlsDetails
Factory
instance.setTlsVersions
(String... tlslVersions) Assigns enabledTLS
versions.setTlsVersions
(org.apache.hc.core5.http.ssl.TLS... tlslVersions) Assigns enabledTLS
versions.Use system properties when creating and configuring default implementations.
-
Constructor Details
-
VeniceClientTlsStrategyBuilder
public VeniceClientTlsStrategyBuilder()
-
-
Method Details
-
create
-
setSslContext
AssignsSSLContext
instance. -
setTlsVersions
Assigns enabledTLS
versions. -
setTlsVersions
public final VeniceClientTlsStrategyBuilder setTlsVersions(org.apache.hc.core5.http.ssl.TLS... tlslVersions) Assigns enabledTLS
versions. -
setCiphers
Assigns enabled ciphers. -
setSslBufferMode
public VeniceClientTlsStrategyBuilder setSslBufferMode(org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferMode) AssignsSSLBufferMode
value. -
setHostnameVerifier
AssignsHostnameVerifier
instance. -
setTlsDetailsFactory
public VeniceClientTlsStrategyBuilder setTlsDetailsFactory(org.apache.hc.core5.function.Factory<SSLEngine, org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory) AssignsTlsDetails
Factory
instance. -
useSystemProperties
Use system properties when creating and configuring default implementations. -
build
public org.apache.hc.core5.http.nio.ssl.TlsStrategy build()
-