Class VeniceClientTlsStrategyBuilder


  • public class VeniceClientTlsStrategyBuilder
    extends java.lang.Object
    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 Detail

      • VeniceClientTlsStrategyBuilder

        public VeniceClientTlsStrategyBuilder()
    • Method Detail

      • setTlsVersions

        public final VeniceClientTlsStrategyBuilder setTlsVersions​(org.apache.hc.core5.http.ssl.TLS... tlslVersions)
        Assigns enabled TLS versions.
      • setSslBufferMode

        public VeniceClientTlsStrategyBuilder setSslBufferMode​(org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferMode)
        Assigns SSLBufferMode value.
      • setHostnameVerifier

        public VeniceClientTlsStrategyBuilder setHostnameVerifier​(javax.net.ssl.HostnameVerifier hostnameVerifier)
        Assigns HostnameVerifier instance.
      • setTlsDetailsFactory

        public VeniceClientTlsStrategyBuilder setTlsDetailsFactory​(org.apache.hc.core5.function.Factory<javax.net.ssl.SSLEngine,​org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
        Assigns TlsDetails 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()