Class SslConfigurationBuilder
java.lang.Object
org.infinispan.client.rest.configuration.AbstractConfigurationChildBuilder
org.infinispan.client.rest.configuration.AbstractSecurityConfigurationChildBuilder
org.infinispan.client.rest.configuration.SslConfigurationBuilder
- All Implemented Interfaces:
RestClientConfigurationChildBuilder,org.infinispan.commons.configuration.Builder<SslConfiguration>
public class SslConfigurationBuilder
extends AbstractSecurityConfigurationChildBuilder
implements org.infinispan.commons.configuration.Builder<SslConfiguration>
SSLConfigurationBuilder.
- Since:
- 10.0
- Author:
- Tristan Tarrant
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetcreate()disable()Disables the SSL supportenable()Enables the SSL supportenabled(boolean enabled) Enables or disables the SSL supporthostnameVerifier(HostnameVerifier hostnameVerifier) Sets theHostnameVerifierto use when validating certificates against hostnamesSets the alias of the key to use, in case the keyStore contains multiple certificates.keyStoreCertificatePassword(char[] keyStoreCertificatePassword) Deprecated.since 9.3keyStoreFileName(String keyStoreFileName) Specifies the filename of a keystore to use to create theSSLContextYou 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.Configures the security provider to use when initializing TLS.read(SslConfiguration template) sniHostName(String sniHostName) Specifies the TLS SNI hostname for the connectionsslContext(SSLContext sslContext) Sets anSSLContexttrustManagers(TrustManager[] trustManagers) Sets theTrustManagers used to create theSSLContextttrustStoreFileName(String trustStoreFileName) Specifies the filename of a truststore to use to create theSSLContextYou also need to specify atrustStorePassword(char[]).trustStorePassword(char[] trustStorePassword) Specifies the password needed to open the truststore You also need to specify atrustStoreFileName(String).trustStorePath(String trustStorePath) Specifies a path containing certificates in PEM format.trustStoreType(String trustStoreType) Specifies the type of the truststore, such as JKS or JCEKS.voidvalidate()withProperties(Properties properties) Configures this builder using the specified properties.Methods inherited from class org.infinispan.client.rest.configuration.AbstractSecurityConfigurationChildBuilder
authentication, sslMethods inherited from class org.infinispan.client.rest.configuration.AbstractConfigurationChildBuilder
addServer, addServers, build, connectionTimeout, followRedirects, priorKnowledge, protocol, security, socketTimeout, tcpKeepAlive, tcpNoDelay
-
Constructor Details
-
SslConfigurationBuilder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
disable
Disables the SSL support -
enable
Enables the SSL support -
enabled
Enables or disables the SSL support -
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
Specifies the type of the keystore, such as JKS or JCEKS. Defaults to JKS. Setting this property also implicitly enables SSL/TLS (seeenable() -
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() -
keyStoreCertificatePassword
@Deprecated public SslConfigurationBuilder keyStoreCertificatePassword(char[] keyStoreCertificatePassword) Deprecated.since 9.3Specifies the password needed to access private key associated with certificate stored in specifiedkeyStoreFileName(String). If password is not specified, password provided inkeyStorePassword(char[])will be used. Setting this property also implicitly enables SSL/TLS (seeenable()
Note: this only works with some keystore types -
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
Sets anSSLContext -
trustManagers
Sets theTrustManagers used to create theSSLContextt -
hostnameVerifier
Sets theHostnameVerifierto use when validating certificates against hostnames -
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() -
trustStorePath
-
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
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
Specifies the TLS SNI hostname for the connection -
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:
-
provider
Configures the security provider to use when initializing TLS. Setting this property also implicitly enables SSL/TLS (seeenable()- Parameters:
provider- The name of a security provider- See Also:
-
validate
public void validate()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
read
- Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<SslConfiguration>
-
withProperties
Description copied from interface:RestClientConfigurationChildBuilderConfigures this builder using the specified properties. SeeRestClientConfigurationBuilderfor a list.- Specified by:
withPropertiesin interfaceRestClientConfigurationChildBuilder- Overrides:
withPropertiesin classAbstractConfigurationChildBuilder
-