Class SslConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>,S extends ProtocolServerConfigurationChildBuilder<T,S,A>,A extends AuthenticationConfiguration>
java.lang.Object
org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder<T,S,A>
org.infinispan.server.core.configuration.SslConfigurationBuilder<T,S,A>
- All Implemented Interfaces:
Builder<SslConfiguration>
,Self<S>
,ProtocolServerConfigurationChildBuilder<T,
S, A>
public class SslConfigurationBuilder<T extends ProtocolServerConfiguration<T,A>,S extends ProtocolServerConfigurationChildBuilder<T,S,A>,A extends AuthenticationConfiguration>
extends AbstractProtocolServerConfigurationChildBuilder<T,S,A>
implements 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
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create the configuration beandisable()
Disables the SSL supportenable()
Enables the SSL supportenabled
(boolean enabled) Enables or disables the SSL supportboolean
Selects a specific key to choose from the keystorekeyStoreFileName
(String keyStoreFileName) Specifies the filename of a keystore to use to create theSSLContext
You 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, Combine combine) Reads the configuration from an already created configuration bean into this builder.requireClientAuth
(boolean requireClientAuth) Enables client certificate authenticationself()
sniHostName
(String domain) Returns SNI domain configuration.sslContext
(Supplier<SSLContext> sslContext) Sets theSSLContext
to use for setting up SSL connections.sslContext
(SSLContext sslContext) Sets theSSLContext
to use for setting up SSL connections.trustStoreFileName
(String trustStoreFileName) Specifies the filename of a truststore to use to create theSSLContext
You 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.void
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.server.core.configuration.AbstractProtocolServerConfigurationChildBuilder
adminOperationsHandler, authentication, build, defaultCacheName, host, idleTimeout, implicitConnector, ioThreads, ipFilter, name, port, recvBufSize, sendBufSize, socketBinding, ssl, startTransport, tcpKeepAlive, tcpNoDelay
-
Constructor Details
-
SslConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<T extends ProtocolServerConfiguration<T,
A>>
-
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:
SslConfigurationBuilder
instance associated with specified domain.
-
sslContext
Sets theSSLContext
to use for setting up SSL connections. -
sslContext
Sets theSSLContext
to use for setting up SSL connections. -
keyStoreFileName
Specifies the filename of a keystore to use to create theSSLContext
You also need to specify akeyStorePassword(char[])
. Alternatively specify prebuiltSSLContext
throughsslContext(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 prebuiltSSLContext
throughsslContext(SSLContext)
. -
keyAlias
Selects a specific key to choose from the keystore -
trustStoreFileName
Specifies the filename of a truststore to use to create theSSLContext
You also need to specify atrustStorePassword(char[])
. Alternatively specify prebuiltSSLContext
throughsslContext(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 prebuiltSSLContext
throughsslContext(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()Description copied from interface:Builder
Validate the data in this builder before building the configuration bean -
create
Description copied from interface:Builder
Create the configuration bean -
read
Description copied from interface:Builder
Reads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration -
self
-