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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()callbackHandler(CallbackHandler callbackHandler) Specifies aCallbackHandlerto 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 ConfigurationBuilderindexing()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 protocolbooleansimpleCache(boolean simpleCache) sites()template(boolean template) unsafe()Specifies the username to be used for authentication.voidvalidate()Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.persistence.remote.configuration.AbstractSecurityConfigurationChildBuilder
authentication, sslMethods 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, valueSizeEstimateMethods inherited from class org.infinispan.configuration.cache.AbstractStoreConfigurationChildBuilder
addProperty, async, fetchPersistentState, ignoreModifications, maxBatchSize, preload, purgeOnStartup, segmented, shared, transactional, withProperties, writeOnlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, unsafeMethods inherited from interface org.infinispan.configuration.cache.PersistenceConfigurationChildBuilder
persistenceMethods 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:
attributesin interfaceBuilder<AuthenticationConfiguration>
-
callbackHandler
Specifies aCallbackHandlerto be used during the authentication handshake. TheCallbacks 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:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<AuthenticationConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin 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:BuilderValidate the data in this builder before building the configuration bean- Specified by:
validatein interfaceBuilder<AuthenticationConfiguration>
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin 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:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-