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:
Builder<SslConfiguration>
,Self<S>
,ProtocolServerConfigurationChildBuilder<T,
S>
public class SslConfigurationBuilder<T extends ProtocolServerConfiguration,S extends ProtocolServerConfigurationChildBuilder<T,S>>
extends AbstractProtocolServerConfigurationChildBuilder<T,S>
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 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 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, 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>
-
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)
. -
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 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- Specified by:
validate
in interfaceBuilder<T extends ProtocolServerConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<T extends ProtocolServerConfiguration>
- Returns:
-
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- Specified by:
read
in interfaceBuilder<T extends ProtocolServerConfiguration>
- Parameters:
template
- the configuration from which to "clone" this config if needed.combine
- the way attributes and children of this instance and the template should be combined.
-
self
- Specified by:
self
in interfaceSelf<T extends ProtocolServerConfiguration>
-