public class SSLConnectionSocketFactoryBuilder extends Object
SSLConnectionSocketFactory
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 |
---|
SSLConnectionSocketFactoryBuilder() |
Modifier and Type | Method and Description |
---|---|
SSLConnectionSocketFactory |
build() |
static SSLConnectionSocketFactoryBuilder |
create() |
SSLConnectionSocketFactoryBuilder |
setCiphers(String... ciphers)
Assigns enabled ciphers.
|
SSLConnectionSocketFactoryBuilder |
setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
Assigns
HostnameVerifier instance. |
SSLConnectionSocketFactoryBuilder |
setSslContext(SSLContext sslContext)
Assigns
SSLContext instance. |
SSLConnectionSocketFactoryBuilder |
setTlsVersions(String... tlslVersions)
Assigns enabled
TLS versions. |
SSLConnectionSocketFactoryBuilder |
setTlsVersions(TLS... tlslVersions)
Assigns enabled
TLS versions. |
SSLConnectionSocketFactoryBuilder |
useSystemProperties()
Use system properties when creating and configuring default
implementations.
|
public SSLConnectionSocketFactory build()
public static SSLConnectionSocketFactoryBuilder create()
public final SSLConnectionSocketFactoryBuilder setCiphers(String... ciphers)
public SSLConnectionSocketFactoryBuilder setHostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)
HostnameVerifier
instance.public SSLConnectionSocketFactoryBuilder setSslContext(SSLContext sslContext)
SSLContext
instance.public final SSLConnectionSocketFactoryBuilder setTlsVersions(String... tlslVersions)
TLS
versions.public final SSLConnectionSocketFactoryBuilder setTlsVersions(TLS... tlslVersions)
TLS
versions.public final SSLConnectionSocketFactoryBuilder useSystemProperties()