Class AuthenticationConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.AbstractPersistenceConfigurationChildBuilder
org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder<S>
org.infinispan.persistence.remote.configuration.AbstractRemoteStoreConfigurationChildBuilder
org.infinispan.persistence.remote.configuration.AbstractSecurityConfigurationChildBuilder
org.infinispan.persistence.remote.configuration.AuthenticationConfigurationBuilder
- All Implemented Interfaces:
Builder<AuthenticationConfiguration>
,ConfigurationChildBuilder
,PersistenceConfigurationChildBuilder
,StoreConfigurationChildBuilder
,RemoteStoreConfigurationChildBuilder
public class AuthenticationConfigurationBuilder
extends AbstractSecurityConfigurationChildBuilder
implements Builder<AuthenticationConfiguration>
AuthenticationConfigurationBuilder.
- Since:
- 9.1
- Author:
- Tristan Tarrant
-
Field Summary
Fields inherited from class org.infinispan.persistence.remote.configuration.AbstractRemoteStoreConfigurationChildBuilder
attributes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
callbackHandler
(CallbackHandler callbackHandler) Specifies aCallbackHandler
to be used during the authentication handshake.clientSubject
(Subject clientSubject) Sets the client subject, necessary for those SASL mechanisms which require it to access client credentials (i.e.create()
Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsdisable()
Disables authenticationenable()
Enables authenticationenabled
(boolean enabled) Configures whether authentication should be enabled or notencoding()
protected ConfigurationBuilder
indexing()
locking()
memory()
password
(char[] password) Specifies the password to be used for authentication.Specifies the password to be used for authentication.query()
Builder<?>
read
(AuthenticationConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.Specifies the realm to be used for authentication.saslMechanism
(String saslMechanism) Selects the SASL mechanism to use for the connection to the serversaslProperties
(Map<String, String> saslProperties) Sets the SASL propertiessecurity()
serverName
(String serverName) Sets the name of the server as expected by the SASL protocolboolean
simpleCache
(boolean simpleCache) sites()
template
(boolean template) unsafe()
Specifies the username to be used for authentication.void
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.persistence.remote.configuration.AbstractSecurityConfigurationChildBuilder
authentication, ssl
Methods inherited from class org.infinispan.persistence.remote.configuration.AbstractRemoteStoreConfigurationChildBuilder
addServer, asyncExecutorFactory, balancingStrategy, connectionPool, connectionTimeout, forceReturnValues, getRemoteStoreBuilder, hotRodWrapping, keySizeEstimate, marshaller, marshaller, protocolVersion, rawValues, remoteCacheName, remoteSecurity, socketTimeout, tcpNoDelay, transportFactory, transportFactory, validate, valueSizeEstimate
Methods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
build, clustering, customInterceptors, encoding, expiration, indexing, invocationBatching, jmxStatistics, locking, memory, query, security, simpleCache, simpleCache, sites, statistics, template, transaction, unsafe
Methods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistence
Methods inherited from interface org.infinispan.configuration.cache.StoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnly
-
Constructor Details
-
AuthenticationConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<AuthenticationConfiguration>
-
callbackHandler
Specifies aCallbackHandler
to be used during the authentication handshake. TheCallback
s that need to be handled are specific to the chosen SASL mechanism. -
enabled
Configures whether authentication should be enabled or not -
enable
Enables authentication -
disable
Disables authentication -
saslMechanism
Selects the SASL mechanism to use for the connection to the server -
saslProperties
Sets the SASL properties -
serverName
Sets the name of the server as expected by the SASL protocol -
clientSubject
Sets the client subject, necessary for those SASL mechanisms which require it to access client credentials (i.e. GSSAPI) -
username
Specifies the username to be used for authentication. This will use a simple CallbackHandler. This is mutually exclusive with explicitly providing the CallbackHandler -
password
Specifies the password to be used for authentication. A username is also required -
password
Specifies the password to be used for authentication. A username is also required -
realm
Specifies the realm to be used for authentication. Username and password also need to be supplied. -
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<AuthenticationConfiguration>
- 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<AuthenticationConfiguration>
- 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.
-
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<AuthenticationConfiguration>
-
template
- Specified by:
template
in interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCache
in interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clustering
in interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptors
in interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encoding
in interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expiration
in interfaceConfigurationChildBuilder
-
query
- Specified by:
query
in interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexing
in interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatching
in interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statistics
in interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistence
in interfaceConfigurationChildBuilder
-
locking
- Specified by:
locking
in interfaceConfigurationChildBuilder
-
security
- Specified by:
security
in interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transaction
in interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafe
in interfaceConfigurationChildBuilder
-
sites
- Specified by:
sites
in interfaceConfigurationChildBuilder
-
memory
- Specified by:
memory
in interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
build
in interfaceConfigurationChildBuilder
-