Class TlsConfig.Builder
java.lang.Object
org.apache.hc.client5.http.config.TlsConfig.Builder
- Enclosing class:
TlsConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()setHandshakeTimeout(long handshakeTimeout, TimeUnit timeUnit) setHandshakeTimeout(org.apache.hc.core5.util.Timeout handshakeTimeout) Determines the timeout used by TLS session negotiation exchanges (session handshake).setSupportedCipherSuites(String... supportedCipherSuites) Determines supported cipher suites.setSupportedProtocols(String... supportedProtocols) Determines supported TLS protocols.setSupportedProtocols(org.apache.hc.core5.http.ssl.TLS... supportedProtocols) Determines supported TLS protocols.setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy) Determines the HTTP protocol policy.
-
Field Details
-
handshakeTimeout
private org.apache.hc.core5.util.Timeout handshakeTimeout -
supportedProtocols
-
supportedCipherSuites
-
versionPolicy
private org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHandshakeTimeout
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) -
setHandshakeTimeout
- See Also:
-
setSupportedProtocols
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
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 -
build
-