Class SslConfigurationBuilder
- java.lang.Object
-
- org.infinispan.hotrod.configuration.AbstractConfigurationChildBuilder
-
- org.infinispan.hotrod.configuration.SslConfigurationBuilder
-
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<SslConfiguration>,ConfigurationChildBuilder
public class SslConfigurationBuilder extends AbstractConfigurationChildBuilder implements org.infinispan.commons.configuration.Builder<SslConfiguration>
SSLConfigurationBuilder.- Since:
- 14.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SslConfigurationBuilderciphers(String... ciphers)Configures the ciphers Setting this property also implicitly enables SSL/TLS (seeenable()SslConfigurationcreate()SslConfigurationBuilderdisable()Disables the SSL supportSslConfigurationBuilderenable()Enables the SSL supportSslConfigurationBuilderenabled(boolean enabled)Enables or disables the SSL supportSslConfigurationBuilderkeyAlias(String keyAlias)Sets the alias of the key to use, in case the keyStore contains multiple certificates.SslConfigurationBuilderkeyStoreFileName(String keyStoreFileName)Specifies the filename of a keystore to use to create theSSLContextYou also need to specify akeyStorePassword(char[]).SslConfigurationBuilderkeyStorePassword(char[] keyStorePassword)Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String).SslConfigurationBuilderkeyStoreType(String keyStoreType)Specifies the type of the keystore, such as JKS or JCEKS.SslConfigurationBuilderprotocol(String protocol)Configures the secure socket protocol.SslConfigurationBuilderprovider(String provider)Configures the SSL provider.org.infinispan.commons.configuration.Builderread(SslConfiguration template)SslConfigurationBuildersniHostName(String sniHostName)Specifies the TLS SNI hostname for the connectionSslConfigurationBuildersslContext(SSLContext sslContext)Specifies a pre-builtSSLContextSslConfigurationBuildertrustStoreFileName(String trustStoreFileName)Specifies the filename of a truststore to use to create theSSLContextYou also need to specify atrustStorePassword(char[]).SslConfigurationBuildertrustStorePassword(char[] trustStorePassword)Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String).SslConfigurationBuildertrustStoreType(String trustStoreType)Specifies the type of the truststore, such as JKS or JCEKS.voidvalidate()HotRodConfigurationBuilderwithProperties(Properties properties)Configures this builder using the specified properties.-
Methods inherited from class org.infinispan.hotrod.configuration.AbstractConfigurationChildBuilder
addCluster, addContextInitializer, addContextInitializer, addContextInitializers, addJavaSerialAllowList, addServer, addServers, asyncExecutorFactory, balancingStrategy, balancingStrategy, balancingStrategy, batchSize, build, clientIntelligence, connectionPool, connectionTimeout, consistentHashImpl, consistentHashImpl, forceReturnValues, marshaller, marshaller, marshaller, maxRetries, remoteCache, security, socketTimeout, statistics, tcpKeepAlive, tcpNoDelay, transactionTimeout, transportFactory, uri, uri, version
-
-
-
-
Method Detail
-
disable
public SslConfigurationBuilder disable()
Disables the SSL support
-
enable
public SslConfigurationBuilder enable()
Enables the SSL support
-
enabled
public SslConfigurationBuilder enabled(boolean enabled)
Enables or disables the SSL support
-
keyStoreFileName
public SslConfigurationBuilder 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). Setting this property also implicitly enables SSL/TLS (seeenable()
-
keyStoreType
public SslConfigurationBuilder keyStoreType(String keyStoreType)
Specifies the type of the keystore, such as JKS or JCEKS. Defaults to JKS. Setting this property also implicitly enables SSL/TLS (seeenable()
-
keyStorePassword
public SslConfigurationBuilder keyStorePassword(char[] keyStorePassword)
Specifies the password needed to open the keystore You also need to specify akeyStoreFileName(String). Alternatively specify an initializedsslContext(SSLContext). Setting this property also implicitly enables SSL/TLS (seeenable()
-
keyAlias
public SslConfigurationBuilder keyAlias(String keyAlias)
Sets the alias of the key to use, in case the keyStore contains multiple certificates. Setting this property also implicitly enables SSL/TLS (seeenable()
-
sslContext
public SslConfigurationBuilder sslContext(SSLContext sslContext)
Specifies a pre-builtSSLContext
-
trustStoreFileName
public SslConfigurationBuilder 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). Setting this property also implicitly enables SSL/TLS (seeenable()
-
trustStoreType
public SslConfigurationBuilder trustStoreType(String trustStoreType)
Specifies the type of the truststore, such as JKS or JCEKS. Defaults to JKS. Setting this property also implicitly enables SSL/TLS (seeenable()
-
trustStorePassword
public SslConfigurationBuilder trustStorePassword(char[] trustStorePassword)
Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String). Alternatively specify an initializedsslContext(SSLContext). Setting this property also implicitly enables SSL/TLS (seeenable()
-
sniHostName
public SslConfigurationBuilder sniHostName(String sniHostName)
Specifies the TLS SNI hostname for the connection
-
provider
public SslConfigurationBuilder provider(String provider)
Configures the SSL provider. Setting this property also implicitly enables SSL/TLS (seeenable()- Parameters:
provider- The name of the provider to use when obtaining an SSLContext.- See Also:
SSLContext.getInstance(String)
-
protocol
public SslConfigurationBuilder protocol(String protocol)
Configures the secure socket protocol. Setting this property also implicitly enables SSL/TLS (seeenable()- Parameters:
protocol- The standard name of the requested protocol, e.g TLSv1.2- See Also:
SSLContext.getInstance(String)
-
ciphers
public SslConfigurationBuilder ciphers(String... ciphers)
Configures the ciphers Setting this property also implicitly enables SSL/TLS (seeenable()- Parameters:
ciphers- one or more cipher names- See Also:
SSLContext.getInstance(String)
-
validate
public void validate()
- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
create
public SslConfiguration create()
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
read
public org.infinispan.commons.configuration.Builder read(SslConfiguration template)
- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
withProperties
public HotRodConfigurationBuilder withProperties(Properties properties)
Description copied from interface:ConfigurationChildBuilderConfigures this builder using the specified properties. SeeHotRodConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-
-