Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TlsConfig |
build() |
TlsConfig.Builder |
setHandshakeTimeout(long handshakeTimeout,
TimeUnit timeUnit) |
TlsConfig.Builder |
setHandshakeTimeout(org.apache.hc.core5.util.Timeout handshakeTimeout)
Determines the timeout used by TLS session negotiation exchanges (session handshake).
|
TlsConfig.Builder |
setSupportedCipherSuites(String... supportedCipherSuites)
Determines supported cipher suites.
|
TlsConfig.Builder |
setSupportedProtocols(String... supportedProtocols)
Determines supported TLS protocols.
|
TlsConfig.Builder |
setSupportedProtocols(org.apache.hc.core5.http.ssl.TLS... supportedProtocols)
Determines supported TLS protocols.
|
TlsConfig.Builder |
setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy)
Determines the HTTP protocol policy.
|
public TlsConfig.Builder setHandshakeTimeout(org.apache.hc.core5.util.Timeout handshakeTimeout)
A timeout value of zero is interpreted as an infinite timeout.
Default: null
(undefined)
public TlsConfig.Builder setHandshakeTimeout(long handshakeTimeout, TimeUnit timeUnit)
setHandshakeTimeout(Timeout)
public TlsConfig.Builder setSupportedProtocols(String... supportedProtocols)
Default: null
(undefined)
public TlsConfig.Builder setSupportedProtocols(org.apache.hc.core5.http.ssl.TLS... supportedProtocols)
Default: null
(undefined)
public TlsConfig.Builder setSupportedCipherSuites(String... supportedCipherSuites)
Default: null
(undefined)
public TlsConfig.Builder setVersionPolicy(org.apache.hc.core5.http2.HttpVersionPolicy versionPolicy)
Default: HttpVersionPolicy.NEGOTIATE
public TlsConfig build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.