Class SslEngineConfigurationBuilder
- java.lang.Object
-
- org.infinispan.server.core.configuration.SslEngineConfigurationBuilder
-
- All Implemented Interfaces:
Builder<SslEngineConfiguration>
,SslConfigurationChildBuilder
public class SslEngineConfigurationBuilder extends Object implements SslConfigurationChildBuilder
SSLConfigurationBuilder.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SslEngineConfiguration
create()
Create the configuration beanSslEngineConfigurationBuilder
keyAlias(String keyAlias)
Selects a specific key to choose from the keystoreSslEngineConfigurationBuilder
keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
Specifies the password needed to access private key associated with certificate stored in specifiedkeyStoreFileName(String)
.SslEngineConfigurationBuilder
keyStoreFileName(String keyStoreFileName)
Specifies the filename of a keystore to use to create theSSLContext
You also need to specify akeyStorePassword(char[])
.SslEngineConfigurationBuilder
keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String)
.SslEngineConfigurationBuilder
keyStoreType(String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS.SslEngineConfigurationBuilder
protocol(String protocol)
Configures the secure socket protocol.SslEngineConfigurationBuilder
read(SslEngineConfiguration template)
Reads the configuration from an already created configuration bean into this builder.SslEngineConfigurationBuilder
sniHostName(String domain)
SslEngineConfigurationBuilder
sslContext(SSLContext sslContext)
Sets theSSLContext
to use for setting up SSL connections.SslEngineConfigurationBuilder
trustStoreFileName(String trustStoreFileName)
Specifies the filename of a truststore to use to create theSSLContext
You also need to specify atrustStorePassword(char[])
.SslEngineConfigurationBuilder
trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String)
.SslEngineConfigurationBuilder
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 Detail
-
sslContext
public SslEngineConfigurationBuilder sslContext(SSLContext sslContext)
Sets theSSLContext
to use for setting up SSL connections.
-
keyStoreFileName
public SslEngineConfigurationBuilder keyStoreFileName(String 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
public SslEngineConfigurationBuilder keyStoreType(String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS. Defaults to JKS
-
keyStorePassword
public SslEngineConfigurationBuilder keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String)
. Alternatively specify an initializedsslContext(SSLContext)
.
-
trustStoreFileName
public SslEngineConfigurationBuilder trustStoreFileName(String 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
public SslEngineConfigurationBuilder trustStoreType(String trustStoreType)
Specifies the type of the truststore, such as JKS or JCEKS. Defaults to JKS
-
trustStorePassword
public SslEngineConfigurationBuilder trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String)
. Alternatively specify an initializedsslContext(SSLContext)
.
-
keyStoreCertificatePassword
public SslEngineConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
Specifies the password needed to access private key associated with certificate stored in specifiedkeyStoreFileName(String)
. If password is not specified, the password provided inkeyStorePassword(char[])
will be used.
-
keyAlias
public SslEngineConfigurationBuilder keyAlias(String keyAlias)
Selects a specific key to choose from the keystore
-
protocol
public SslEngineConfigurationBuilder protocol(String protocol)
Configures the secure socket protocol.- Parameters:
protocol
- The standard name of the requested protocol, e.g TLSv1.2- See Also:
SSLContext.getInstance(String)
-
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
public SslEngineConfiguration create()
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<SslEngineConfiguration>
- Returns:
-
read
public SslEngineConfigurationBuilder read(SslEngineConfiguration template)
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.
-
sniHostName
public SslEngineConfigurationBuilder sniHostName(String domain)
- Specified by:
sniHostName
in interfaceSslConfigurationChildBuilder
-
-