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 |
---|---|
TlsStrategy |
build() |
static ClientTlsStrategyBuilder |
create() |
ClientTlsStrategyBuilder |
setCiphers(String... ciphers)
Assigns enabled ciphers.
|
ClientTlsStrategyBuilder |
setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
Assigns
HostnameVerifier instance. |
ClientTlsStrategyBuilder |
setSslBufferMode(SSLBufferMode sslBufferMode)
Assigns
SSLBufferMode value. |
ClientTlsStrategyBuilder |
setSslContext(SSLContext sslContext)
Assigns
SSLContext instance. |
ClientTlsStrategyBuilder |
setTlsDetailsFactory(Factory<javax.net.ssl.SSLEngine,TlsDetails> tlsDetailsFactory)
Assigns
TlsDetails Factory instance. |
ClientTlsStrategyBuilder |
setTlsVersions(String... tlslVersions)
Assigns enabled
TLS versions. |
ClientTlsStrategyBuilder |
setTlsVersions(TLS... tlslVersions)
Assigns enabled
TLS versions. |
ClientTlsStrategyBuilder |
useSystemProperties()
Use system properties when creating and configuring default
implementations.
|
public TlsStrategy build()
public static ClientTlsStrategyBuilder create()
public final ClientTlsStrategyBuilder setCiphers(String... ciphers)
public ClientTlsStrategyBuilder setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
HostnameVerifier
instance.public ClientTlsStrategyBuilder setSslBufferMode(SSLBufferMode sslBufferMode)
SSLBufferMode
value.public ClientTlsStrategyBuilder setSslContext(SSLContext sslContext)
SSLContext
instance.public ClientTlsStrategyBuilder setTlsDetailsFactory(Factory<javax.net.ssl.SSLEngine,TlsDetails> tlsDetailsFactory)
TlsDetails
Factory
instance.public final ClientTlsStrategyBuilder setTlsVersions(String... tlslVersions)
TLS
versions.public final ClientTlsStrategyBuilder setTlsVersions(TLS... tlslVersions)
TLS
versions.public final ClientTlsStrategyBuilder useSystemProperties()