public class SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>> extends AbstractProtocolServerConfigurationChildBuilder<T,S> implements Builder<SslConfiguration>
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 |
keyAlias(String keyAlias)
Selects a specific key to choose from the keystore
|
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) . |
SslConfigurationBuilder |
keyStoreType(String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS.
|
SslConfigurationBuilder |
protocol(String protocol)
Configures the secure socket protocol.
|
SslConfigurationBuilder |
read(SslConfiguration template)
Reads the configuration from an already created configuration bean into this builder.
|
SslConfigurationBuilder |
requireClientAuth(boolean requireClientAuth)
Enables client certificate authentication
|
S |
self() |
SslEngineConfigurationBuilder |
sniHostName(String domain)
Returns SNI domain configuration.
|
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(char[]) . |
SslConfigurationBuilder |
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify a
trustStoreFileName(String) . |
SslConfigurationBuilder |
trustStoreType(String trustStoreType)
Specifies the type of the truststore, such as JKS or JCEKS.
|
void |
validate()
Validate the data in this builder before building the configuration bean
|
adminOperationsHandler, build, defaultCacheName, host, idleTimeout, ignoredCaches, name, port, recvBufSize, sendBufSize, ssl, startTransport, tcpNoDelay, workerThreads
public SslConfigurationBuilder disable()
public SslConfigurationBuilder enable()
public SslConfigurationBuilder enabled(boolean enabled)
public SslConfigurationBuilder requireClientAuth(boolean requireClientAuth)
public SslEngineConfigurationBuilder sniHostName(String domain)
domain
- A domain which will hold configuration details. It is also possible to specify *
for all domains.SslConfigurationBuilder
instance associated with specified domain.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(char[])
. Alternatively specify prebuilt SSLContext
through sslContext(SSLContext)
.public SslConfigurationBuilder keyStoreType(String keyStoreType)
public SslConfigurationBuilder keyStorePassword(char[] keyStorePassword)
keyStoreFileName(String)
. Alternatively specify prebuilt SSLContext
through sslContext(SSLContext)
.public SslConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
keyStoreFileName(String)
. If password is not specified, the password provided in
keyStorePassword(char[])
will be used.public SslConfigurationBuilder keyAlias(String keyAlias)
public SslConfigurationBuilder trustStoreFileName(String trustStoreFileName)
SSLContext
You also need
to specify a trustStorePassword(char[])
. Alternatively specify prebuilt SSLContext
through sslContext(SSLContext)
.public SslConfigurationBuilder trustStoreType(String trustStoreType)
public SslConfigurationBuilder trustStorePassword(char[] trustStorePassword)
trustStoreFileName(String)
. Alternatively specify prebuilt SSLContext
through sslContext(SSLContext)
.public SslConfigurationBuilder protocol(String protocol)
protocol
- The standard name of the requested protocol, e.g TLSv1.2SSLContext.getInstance(String)
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.