Class GlobalSecurityConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.AbstractGlobalConfigurationBuilder
org.infinispan.configuration.global.GlobalSecurityConfigurationBuilder
- All Implemented Interfaces:
Builder<GlobalSecurityConfiguration>
,GlobalConfigurationChildBuilder
,GlobalSecurityConfigurationChildBuilder
public class GlobalSecurityConfigurationBuilder
extends AbstractGlobalConfigurationBuilder
implements GlobalSecurityConfigurationChildBuilder, Builder<GlobalSecurityConfiguration>
GlobalSecurityConfigurationBuilder.
- Since:
- 7.0
- Author:
- Tristan Tarrant
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDefines global roles as groups of permissionscreate()
Create the configuration beanread
(GlobalSecurityConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.securityCacheSize
(int securityCacheSize) Defines the size for the access role cache.securityCacheTimeout
(long securityCacheTimeout, TimeUnit unit) Defines the timeout for which to cache user access roles.void
validate()
Validate the data in this builder before building the configuration beanMethods inherited from class org.infinispan.configuration.global.AbstractGlobalConfigurationBuilder
addModule, asyncThreadPool, blockingThreadPool, build, clearModules, defaultCacheName, expirationThreadPool, getGlobalConfig, globalState, jmx, listenerThreadPool, metrics, module, modules, nonBlockingThreadPool, persistenceThreadPool, security, serialization, shutdown, site, tracing, transport
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.global.GlobalConfigurationChildBuilder
addModule, asyncThreadPool, blockingThreadPool, build, clearModules, defaultCacheName, expirationThreadPool, globalState, jmx, listenerThreadPool, metrics, module, modules, nonBlockingThreadPool, persistenceThreadPool, security, serialization, shutdown, site, tracing, transport
-
Constructor Details
-
GlobalSecurityConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributes
in interfaceBuilder<GlobalSecurityConfiguration>
-
authorization
Description copied from interface:GlobalSecurityConfigurationChildBuilder
Defines global roles as groups of permissions- Specified by:
authorization
in interfaceGlobalSecurityConfigurationChildBuilder
-
securityCacheSize
Description copied from interface:GlobalSecurityConfigurationChildBuilder
Defines the size for the access role cache. The default value is 1000.- Specified by:
securityCacheSize
in interfaceGlobalSecurityConfigurationChildBuilder
- Parameters:
securityCacheSize
- the number of access roles to cache
-
securityCacheTimeout
public GlobalSecurityConfigurationBuilder securityCacheTimeout(long securityCacheTimeout, TimeUnit unit) Description copied from interface:GlobalSecurityConfigurationChildBuilder
Defines the timeout for which to cache user access roles. A value of -1 means the entries never expire. A value of 0 will disable the cache.- Specified by:
securityCacheTimeout
in interfaceGlobalSecurityConfigurationChildBuilder
- Parameters:
securityCacheTimeout
- the timeoutunit
- theTimeUnit
-
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<GlobalSecurityConfiguration>
-
create
Description copied from interface:Builder
Create the configuration bean- Specified by:
create
in interfaceBuilder<GlobalSecurityConfiguration>
- Returns:
-
read
public GlobalSecurityConfigurationBuilder read(GlobalSecurityConfiguration template, Combine combine) 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<GlobalSecurityConfiguration>
- 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.
-