public static final class HttpConfiguration.SslConfiguration.Builder extends Object
HttpConfiguration.SslConfiguration
.Constructor and Description |
---|
HttpConfiguration.SslConfiguration.Builder(KeyStore trustStore) |
Modifier and Type | Method and Description |
---|---|
HttpConfiguration.SslConfiguration |
getConfig()
Creates a configuration with all the settings set to this builder
instance.
|
HttpConfiguration.SslConfiguration.Builder |
setCrlCertStore(CertStore crlCertStore)
Sets the certificate revocation list
CertStore that would
be used for validating server certificates. |
HttpConfiguration.SslConfiguration.Builder |
setEnabledCipherSuites(String[] enabledCipherSuites)
Sets the cipher suites enabled for use by this configuration.
|
HttpConfiguration.SslConfiguration.Builder |
setEnabledProtocols(String[] enabledProtocols)
Sets the protocol versions enabled for use by this configuration.
|
HttpConfiguration.SslConfiguration.Builder |
setKeyStore(KeyStore keyStore)
Sets the
KeyStore which contains the certificates used to
authenticate the client during an SSL handshake. |
HttpConfiguration.SslConfiguration.Builder |
setKeyStoreConfig(HttpConfiguration.KeyStoreConfig keyStoreConfig)
Sets the configuration parameters for the
KeyStore
provided with setKeyStore(KeyStore) . |
public HttpConfiguration.SslConfiguration.Builder(KeyStore trustStore)
trustStore
- the keystore that contains certificates of
trusted parties or Certificate Authorities trusted to
identify other parties; must not be null
.public HttpConfiguration.SslConfiguration.Builder setKeyStore(KeyStore keyStore)
KeyStore
which contains the certificates used to
authenticate the client during an SSL handshake.
A HttpConfiguration.KeyStoreConfig
object specifying the alias and
password of the key should be provided through
#setKeyStoreConfig(KeyStoreConfig)
for this to work.
Default value is null
which results in no client
authentication provided when connecting to the server.
keyStore
- the keystore that contains the client
certificates; may be null
.#setKeyStoreConfig(KeyStoreConfig)
public HttpConfiguration.SslConfiguration.Builder setKeyStoreConfig(HttpConfiguration.KeyStoreConfig keyStoreConfig)
KeyStore
provided with setKeyStore(KeyStore)
.
Default value is null
which results in no client
authentication provided when connecting to the server.
keyStoreConfig
- the configuration for client certificates.setKeyStore(KeyStore)
public HttpConfiguration.SslConfiguration.Builder setCrlCertStore(CertStore crlCertStore)
CertStore
that would
be used for validating server certificates.
Default value is null
which results in no validation
for the server certificates against CRLs.
crlCertStore
- the cert-store to be used for retrieving the
CRLs; may be null
.public HttpConfiguration.SslConfiguration.Builder setEnabledProtocols(String[] enabledProtocols)
The specified protocols must be among SSLv2Hello
,
SSLv3
, TLSv1
, TLSv1.1
and TLSv1.2
; otherwise, applying this configuration over an
SSLSocket
later would fail.
Defaults to TLSv1
, TLSv1.1
and TLSv1.2
.
enabledProtocols
- Names of all the protocols to enable;
must not be null
or empty.public HttpConfiguration.SslConfiguration.Builder setEnabledCipherSuites(String[] enabledCipherSuites)
Default value is null
which results in the default JRE
cipher-suites being enabled.
enabledCipherSuites
- Names of all the cipher suites to
enable.public HttpConfiguration.SslConfiguration getConfig()
HttpConfiguration.SslConfiguration
Copyright © 2016. All Rights Reserved.