Class SslEngineConfigurationBuilder
java.lang.Object
org.infinispan.server.core.configuration.SslEngineConfigurationBuilder
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<SslEngineConfiguration>,SslConfigurationChildBuilder
SSLConfigurationBuilder.
- Since:
- 5.3
- Author:
- Tristan Tarrant
-
Method Summary
Modifier and TypeMethodDescriptionorg.infinispan.commons.configuration.attributes.AttributeSetcreate()Selects a specific key to choose from the keystorekeyStoreCertificatePassword(char[] keyStoreCertificatePassword) Specifies the password needed to access private key associated with certificate stored in specifiedkeyStoreFileName(String).keyStoreFileName(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.read(SslEngineConfiguration template, org.infinispan.commons.configuration.Combine combine) sniHostName(String domain) sslContext(Supplier<SSLContext> sslContext) Sets theSSLContextto use for setting up SSL connections.sslContext(SSLContext sslContext) Sets theSSLContextto use for setting up SSL connections.trustStoreFileName(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).trustStoreType(String trustStoreType) Specifies the type of the truststore, such as JKS or JCEKS.voidvalidate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.configuration.Builder
read, reset
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<SslEngineConfiguration>
-
sslContext
Sets theSSLContextto use for setting up SSL connections. -
sslContext
Sets theSSLContextto use for setting up SSL connections. -
keyStoreFileName
Specifies the filename of a keystore to use to create theSSLContextYou 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 theSSLContextYou 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). -
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
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()- Specified by:
validatein interfaceorg.infinispan.commons.configuration.Builder<SslEngineConfiguration>
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<SslEngineConfiguration>
-
read
public SslEngineConfigurationBuilder read(SslEngineConfiguration template, org.infinispan.commons.configuration.Combine combine) - Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<SslEngineConfiguration>
-
sniHostName
- Specified by:
sniHostNamein interfaceSslConfigurationChildBuilder
-