public class SslConfigurationBuilder extends AbstractSecurityConfigurationChildBuilder implements Builder<SslConfiguration>
| Modifier | Constructor and Description |
|---|---|
protected |
SslConfigurationBuilder(SecurityConfigurationBuilder builder) |
| Modifier and Type | Method and Description |
|---|---|
SslConfiguration |
create()
Create the configuration bean
|
SslConfigurationBuilder |
disable()
Disables the SSL support
|
SslConfigurationBuilder |
enable()
Enables the SSL support
|
SslConfigurationBuilder |
enabled(boolean enabled)
Enables or disables the SSL support
|
SslConfigurationBuilder |
keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
Specifies the password needed to access private key associated with certificate stored in specified
keyStoreFileName(String). |
SslConfigurationBuilder |
keyStoreFileName(String keyStoreFileName)
Specifies the filename of a keystore to use to create the
SSLContext You also need to
specify a keyStorePassword(char[]). |
SslConfigurationBuilder |
keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify a
keyStoreFileName(String) Alternatively specify an array of
#keyManagers(KeyManager[]) |
SslConfigurationBuilder |
read(SslConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SslConfigurationBuilder |
sniHostName(String sniHostName)
Specifies the TLS SNI hostname for the connection
|
SslConfigurationBuilder |
sslContext(SSLContext sslContext) |
SslConfigurationBuilder |
trustStoreFileName(String trustStoreFileName)
Specifies the filename of a truststore to use to create the
SSLContext You also need
to specify a trustStorePassword(char[]). |
SslConfigurationBuilder |
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify a
trustStoreFileName(String) Alternatively specify an array of
#trustManagers(TrustManager[]) |
void |
validate()
Validate the data in this builder before building the configuration bean
|
ConfigurationBuilder |
withProperties(Properties properties)
Configures this builder using the specified properties
|
authentication, ssladdCluster, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, build, classLoader, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, keySizeEstimate, marshaller, marshaller, marshaller, maxRetries, protocolVersion, security, socketTimeout, tcpKeepAlive, tcpNoDelay, transportFactory, transportFactory, valueSizeEstimate, versionprotected SslConfigurationBuilder(SecurityConfigurationBuilder builder)
public SslConfigurationBuilder disable()
public SslConfigurationBuilder enable()
public SslConfigurationBuilder enabled(boolean enabled)
public SslConfigurationBuilder keyStoreFileName(String keyStoreFileName)
SSLContext You also need to
specify a keyStorePassword(char[]). Alternatively specify an array of
#keyManagers(KeyManager[])public SslConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String) Alternatively specify an array of
#keyManagers(KeyManager[])public SslConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
keyStoreFileName(String). If password is not specified, password provided in
#keyStorePassword(String) will be used.public SslConfigurationBuilder sslContext(SSLContext sslContext)
public SslConfigurationBuilder trustStoreFileName(String trustStoreFileName)
SSLContext You also need
to specify a trustStorePassword(char[]). Alternatively specify an array of
#trustManagers(TrustManager[])public SslConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String) Alternatively specify an array of
#trustManagers(TrustManager[])public SslConfigurationBuilder sniHostName(String sniHostName)
SSLParameters.setServerNames(List)public void validate()
Buildervalidate in interface Builder<SslConfiguration>public SslConfiguration create()
Buildercreate in interface Builder<SslConfiguration>public SslConfigurationBuilder read(SslConfiguration template)
Builderread in interface Builder<SslConfiguration>template - the configuration from which to "clone" this config if needed.public ConfigurationBuilder withProperties(Properties properties)
ConfigurationChildBuilderwithProperties in interface ConfigurationChildBuilderwithProperties in class AbstractConfigurationChildBuilderCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.