Class TlsConfig.Builder

  • Enclosing class:
    TlsConfig

    public static class TlsConfig.Builder
    extends java.lang.Object
    • Field Detail

      • handshakeTimeout

        private org.apache.hc.core5.util.Timeout handshakeTimeout
      • supportedProtocols

        private java.lang.String[] supportedProtocols
      • supportedCipherSuites

        private java.lang.String[] supportedCipherSuites
      • versionPolicy

        private org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setHandshakeTimeout

        public TlsConfig.Builder setHandshakeTimeout​(org.apache.hc.core5.util.Timeout handshakeTimeout)
        Determines the timeout used by TLS session negotiation exchanges (session handshake).

        A timeout value of zero is interpreted as an infinite timeout.

        Default: null (undefined)

      • setSupportedProtocols

        public TlsConfig.Builder setSupportedProtocols​(java.lang.String... supportedProtocols)
        Determines supported TLS protocols.

        Default: null (undefined)

      • setSupportedProtocols

        public TlsConfig.Builder setSupportedProtocols​(org.apache.hc.core5.http.ssl.TLS... supportedProtocols)
        Determines supported TLS protocols.

        Default: null (undefined)

      • setSupportedCipherSuites

        public TlsConfig.Builder setSupportedCipherSuites​(java.lang.String... supportedCipherSuites)
        Determines supported cipher suites.

        Default: null (undefined)

      • setVersionPolicy

        public TlsConfig.Builder setVersionPolicy​(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy)
        Determines the HTTP protocol policy. By default, connections are expected to use TLS ALPN extension to negotiate the application protocol to be used by both endpoints.

        Default: HttpVersionPolicy.NEGOTIATE