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