Class SslEngineConfigurationBuilder
java.lang.Object
org.infinispan.server.core.configuration.SslEngineConfigurationBuilder
- All Implemented Interfaces:
Builder<SslEngineConfiguration>
,SslConfigurationChildBuilder
SSLConfigurationBuilder.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create the configuration beanSelects a specific key to choose from the keystorekeyStoreFileName
(String keyStoreFileName) Specifies the filename of a keystore to use to create theSSLContext
You also need to specify akeyStorePassword(char[])
.keyStorePassword
(char[] keyStorePassword) Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String)
.keyStoreType
(String keyStoreType) Specifies the type of the keystore, such as JKS or JCEKS.Configures the secure socket protocol.read
(SslEngineConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.sniHostName
(String domain) sslContext
(Supplier<SSLContext> sslContext) Sets theSSLContext
to use for setting up SSL connections.sslContext
(SSLContext sslContext) Sets theSSLContext
to use for setting up SSL connections.trustStoreFileName
(String trustStoreFileName) Specifies the filename of a truststore to use to create theSSLContext
You also need to specify atrustStorePassword(char[])
.trustStorePassword
(char[] trustStorePassword) Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String)
.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
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<SslEngineConfiguration>
-
sslContext
Sets theSSLContext
to use for setting up SSL connections. -
sslContext
Sets theSSLContext
to use for setting up SSL connections. -
keyStoreFileName
Specifies the filename of a keystore to use to create theSSLContext
You also need to specify akeyStorePassword(char[])
. Alternatively specify an initializedsslContext(SSLContext)
. -
keyStoreType
Specifies the type of the keystore, such as JKS or JCEKS. Defaults to JKS -
keyStorePassword
Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String)
. Alternatively specify an initializedsslContext(SSLContext)
. -
trustStoreFileName
Specifies the filename of a truststore to use to create theSSLContext
You also need to specify atrustStorePassword(char[])
. Alternatively specify an initializedsslContext(SSLContext)
. -
trustStoreType
Specifies the type of the truststore, such as JKS or JCEKS. Defaults to JKS -
trustStorePassword
Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String)
. Alternatively specify an initializedsslContext(SSLContext)
. -
keyAlias
Selects a specific key to choose from the keystore -
protocol
Configures the secure socket protocol.- Parameters:
protocol
- The standard name of the requested protocol, e.g TLSv1.2- See Also:
-
validate
public void validate()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean- Specified by:
validate
in interfaceBuilder<SslEngineConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<SslEngineConfiguration>
- Returns:
-
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
read
in interfaceBuilder<SslEngineConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
sniHostName
- Specified by:
sniHostName
in interfaceSslConfigurationChildBuilder
-