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 SslEngineConfigurationcreate()Create the configuration beanSslEngineConfigurationBuilderkeyAlias(String keyAlias)Selects a specific key to choose from the keystoreSslEngineConfigurationBuilderkeyStoreCertificatePassword(char[] keyStoreCertificatePassword)Specifies the password needed to access private key associated with certificate stored in specifiedkeyStoreFileName(String).SslEngineConfigurationBuilderkeyStoreFileName(String keyStoreFileName)Specifies the filename of a keystore to use to create theSSLContextYou also need to specify akeyStorePassword(char[]).SslEngineConfigurationBuilderkeyStorePassword(char[] keyStorePassword)Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String).SslEngineConfigurationBuilderkeyStoreType(String keyStoreType)Specifies the type of the keystore, such as JKS or JCEKS.SslEngineConfigurationBuilderprotocol(String protocol)Configures the secure socket protocol.SslEngineConfigurationBuilderread(SslEngineConfiguration template)Reads the configuration from an already created configuration bean into this builder.SslEngineConfigurationBuildersniHostName(String domain)SslEngineConfigurationBuildersslContext(Supplier<SSLContext> sslContext)Sets theSSLContextto use for setting up SSL connections.SslEngineConfigurationBuildersslContext(SSLContext sslContext)Sets theSSLContextto use for setting up SSL connections.SslEngineConfigurationBuildertrustStoreFileName(String trustStoreFileName)Specifies the filename of a truststore to use to create theSSLContextYou also need to specify atrustStorePassword(char[]).SslEngineConfigurationBuildertrustStorePassword(char[] trustStorePassword)Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String).SslEngineConfigurationBuildertrustStoreType(String trustStoreType)Specifies the type of the truststore, such as JKS or JCEKS.voidvalidate()Validate the data in this builder before building the configuration bean
-
-
-
Method Detail
-
sslContext
public SslEngineConfigurationBuilder sslContext(SSLContext sslContext)
Sets theSSLContextto use for setting up SSL connections.
-
sslContext
public SslEngineConfigurationBuilder sslContext(Supplier<SSLContext> sslContext)
Sets theSSLContextto use for setting up SSL connections.
-
keyStoreFileName
public SslEngineConfigurationBuilder keyStoreFileName(String keyStoreFileName)
Specifies the filename of a keystore to use to create theSSLContextYou 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 theSSLContextYou 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:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<SslEngineConfiguration>
-
create
public SslEngineConfiguration create()
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<SslEngineConfiguration>- Returns:
-
read
public SslEngineConfigurationBuilder read(SslEngineConfiguration template)
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<SslEngineConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.
-
sniHostName
public SslEngineConfigurationBuilder sniHostName(String domain)
- Specified by:
sniHostNamein interfaceSslConfigurationChildBuilder
-
-