public class SslConfigurationBuilder extends Object implements Builder<SslConfiguration>
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 |
keyStoreFileName(String keyStoreFileName)
Specifies the filename of a keystore to use to create the
SSLContext You also need to
specify a #keyStorePassword(String) . |
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 |
requireClientAuth(boolean requireClientAuth)
Enables client certificate authentication
|
SslConfigurationBuilder |
sslContext(SSLContext sslContext)
Sets the
SSLContext to use for setting up SSL connections. |
SslConfigurationBuilder |
trustStoreFileName(String trustStoreFileName)
Specifies the filename of a truststore to use to create the
SSLContext You also need
to specify a #trustStorePassword(String) . |
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
|
public SslConfigurationBuilder disable()
public SslConfigurationBuilder enable()
public SslConfigurationBuilder enabled(boolean enabled)
public SslConfigurationBuilder requireClientAuth(boolean requireClientAuth)
public SslConfigurationBuilder sslContext(SSLContext sslContext)
SSLContext
to use for setting up SSL connections.public SslConfigurationBuilder keyStoreFileName(String keyStoreFileName)
SSLContext
You also need to
specify a #keyStorePassword(String)
. Alternatively specify an array of
#keyManagers(KeyManager[])
public SslConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String)
Alternatively specify an array of
#keyManagers(KeyManager[])
public SslConfigurationBuilder trustStoreFileName(String trustStoreFileName)
SSLContext
You also need
to specify a #trustStorePassword(String)
. Alternatively specify an array of
#trustManagers(TrustManager[])
public SslConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String)
Alternatively specify an array of
#trustManagers(TrustManager[])
public void validate()
Builder
validate
in interface Builder<SslConfiguration>
public SslConfiguration create()
Builder
create
in interface Builder<SslConfiguration>
public SslConfigurationBuilder read(SslConfiguration template)
Builder
read
in interface Builder<SslConfiguration>
template
- the configuration from which to "clone" this config if needed.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.