public class ClientTlsStrategyBuilder extends Object
TlsStrategy
instances.
When a particular component is not explicitly set this class will
use its default implementation. System properties will be taken
into account when configuring the default implementations when
useSystemProperties()
method is called prior to calling
build()
.
Constructor and Description |
---|
ClientTlsStrategyBuilder() |
Modifier and Type | Method and Description |
---|---|
org.apache.hc.core5.http.nio.ssl.TlsStrategy |
build() |
static ClientTlsStrategyBuilder |
create() |
ClientTlsStrategyBuilder |
setCiphers(String... ciphers)
Sets enabled ciphers.
|
void |
setHostnameVerificationPolicy(HostnameVerificationPolicy hostnameVerificationPolicy)
Sets
HostnameVerificationPolicy value. |
ClientTlsStrategyBuilder |
setHostnameVerifier(HostnameVerifier hostnameVerifier)
Sets
HostnameVerifier instance. |
ClientTlsStrategyBuilder |
setSslBufferMode(org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferMode)
Sets
SSLBufferMode value. |
ClientTlsStrategyBuilder |
setSslContext(SSLContext sslContext)
Sets
SSLContext instance. |
ClientTlsStrategyBuilder |
setTlsDetailsFactory(org.apache.hc.core5.function.Factory<SSLEngine,org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
Deprecated.
Do not use. This method has no effect.
|
ClientTlsStrategyBuilder |
setTlsVersions(String... tlslVersions)
Sets enabled
TLS versions. |
ClientTlsStrategyBuilder |
setTlsVersions(org.apache.hc.core5.http.ssl.TLS... tlslVersions)
Sets enabled
TLS versions. |
ClientTlsStrategyBuilder |
useSystemProperties()
Use system properties when creating and configuring default
implementations.
|
public static ClientTlsStrategyBuilder create()
public ClientTlsStrategyBuilder setSslContext(SSLContext sslContext)
SSLContext
instance.public final ClientTlsStrategyBuilder setTlsVersions(String... tlslVersions)
TLS
versions.public final ClientTlsStrategyBuilder setTlsVersions(org.apache.hc.core5.http.ssl.TLS... tlslVersions)
TLS
versions.public final ClientTlsStrategyBuilder setCiphers(String... ciphers)
public ClientTlsStrategyBuilder setSslBufferMode(org.apache.hc.core5.reactor.ssl.SSLBufferMode sslBufferMode)
SSLBufferMode
value.public void setHostnameVerificationPolicy(HostnameVerificationPolicy hostnameVerificationPolicy)
HostnameVerificationPolicy
value.public ClientTlsStrategyBuilder setHostnameVerifier(HostnameVerifier hostnameVerifier)
HostnameVerifier
instance.@Deprecated public ClientTlsStrategyBuilder setTlsDetailsFactory(org.apache.hc.core5.function.Factory<SSLEngine,org.apache.hc.core5.reactor.ssl.TlsDetails> tlsDetailsFactory)
TlsDetails
Factory
instance.public final ClientTlsStrategyBuilder useSystemProperties()
public org.apache.hc.core5.http.nio.ssl.TlsStrategy build()
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.