Class SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
java.lang.Object
org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder<T,S>
org.infinispan.server.core.configuration.SslConfigurationBuilder<T,S>
- All Implemented Interfaces:
org.infinispan.commons.configuration.Builder<SslConfiguration>,org.infinispan.commons.configuration.Self<S>,ProtocolServerConfigurationChildBuilder<T,S>
public class SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
extends AbstractProtocolServerConfigurationChildBuilder<T,S>
implements org.infinispan.commons.configuration.Builder<SslConfiguration>
SSLConfigurationBuilder.
- Since:
- 5.3
- Author:
- Tristan Tarrant, Sebastian Ćaskawiec
-
Field Summary
Fields inherited from class org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder
builder -
Constructor Summary
ConstructorsConstructorDescription -
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 supportbooleanSelects 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(SslConfiguration template, org.infinispan.commons.configuration.Combine combine) requireClientAuth(boolean requireClientAuth) Enables client certificate authenticationself()sniHostName(String domain) Returns SNI domain configuration.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 org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder
adminOperationsHandler, build, defaultCacheName, host, idleTimeout, implicitConnector, ioThreads, ipFilter, name, port, recvBufSize, sendBufSize, socketBinding, ssl, startTransport, tcpKeepAlive, tcpNoDelayMethods 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
-
Constructor Details
-
SslConfigurationBuilder
-
-
Method Details
-
attributes
public org.infinispan.commons.configuration.attributes.AttributeSet attributes()- Specified by:
attributesin interfaceorg.infinispan.commons.configuration.Builder<T extends ProtocolServerConfiguration>
-
disable
Disables the SSL support -
enable
Enables the SSL support -
enabled
Enables or disables the SSL support -
isEnabled
public boolean isEnabled() -
requireClientAuth
Enables client certificate authentication -
sniHostName
Returns SNI domain configuration.- Parameters:
domain- A domain which will hold configuration details. It is also possible to specify*for all domains.- Returns:
SslConfigurationBuilderinstance associated with specified domain.
-
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 prebuiltSSLContextthroughsslContext(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 prebuiltSSLContextthroughsslContext(SSLContext). -
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 -
trustStoreFileName
Specifies the filename of a truststore to use to create theSSLContextYou also need to specify atrustStorePassword(char[]). Alternatively specify prebuiltSSLContextthroughsslContext(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 prebuiltSSLContextthroughsslContext(SSLContext). -
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<T extends ProtocolServerConfiguration>
-
create
- Specified by:
createin interfaceorg.infinispan.commons.configuration.Builder<T extends ProtocolServerConfiguration>
-
read
public SslConfigurationBuilder read(SslConfiguration template, org.infinispan.commons.configuration.Combine combine) - Specified by:
readin interfaceorg.infinispan.commons.configuration.Builder<T extends ProtocolServerConfiguration>
-
self
- Specified by:
selfin interfaceorg.infinispan.commons.configuration.Self<T extends ProtocolServerConfiguration>
-