public abstract class AbstractIdentityStoreConfiguration extends Object implements IdentityStoreConfiguration
Base class for IdentityStoreConfiguration implementations.
IdentityStoreConfiguration.IdentityOperation| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIdentityStoreConfiguration(Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> supportedTypes,
Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> unsupportedTypes,
List<ContextInitializer> contextInitializers,
Map<String,Object> credentialHandlerProperties,
Set<Class<? extends CredentialHandler>> credentialHandlers,
boolean supportsAttribute) |
| Modifier and Type | Method and Description |
|---|---|
void |
addContextInitializer(ContextInitializer contextInitializer)
Adds a
ContextInitializer instance which will be used to initialize IdentityContexts for
this configuration. |
List<ContextInitializer> |
getContextInitializers() |
Map<String,Object> |
getCredentialHandlerProperties()
Allows credential handler behaviour to be customized via a set of property values
|
List<Class<? extends CredentialHandler>> |
getCredentialHandlers()
Returns a
List of the CredentialHandler types configured. |
Class<? extends IdentityStore> |
getIdentityStoreType()
Returns the
IdentityStore type associated with this configuration. |
Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> |
getSupportedTypes() |
Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> |
getUnsupportedTypes() |
void |
init()
Initializes the store configuration with the specified
FeatureSet. |
protected abstract void |
initConfig() |
void |
initializeContext(IdentityContext context,
IdentityStore<?> store)
Initialize the specified
IdentityContext |
<T extends IdentityStore> |
setIdentityStoreType(Class<T> identityStoreType) |
boolean |
supportsAttribute() |
boolean |
supportsPartition()
Indicates if this configuration supports partition storage.
|
boolean |
supportsType(Class<? extends AttributedType> type,
IdentityStoreConfiguration.IdentityOperation operation)
Checks if the configuration supports the given
AttributedType and IdentityStoreConfiguration.IdentityOperation. |
protected AbstractIdentityStoreConfiguration(Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> supportedTypes, Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> unsupportedTypes, List<ContextInitializer> contextInitializers, Map<String,Object> credentialHandlerProperties, Set<Class<? extends CredentialHandler>> credentialHandlers, boolean supportsAttribute)
public final void init()
throws SecurityConfigurationException
IdentityStoreConfiguration
Initializes the store configuration with the specified FeatureSet.
init in interface IdentityStoreConfigurationSecurityConfigurationExceptionprotected abstract void initConfig()
public void addContextInitializer(ContextInitializer contextInitializer)
IdentityStoreConfiguration
Adds a ContextInitializer instance which will be used to initialize IdentityContexts for
this configuration.
addContextInitializer in interface IdentityStoreConfigurationpublic void initializeContext(IdentityContext context, IdentityStore<?> store)
IdentityStoreConfiguration
Initialize the specified IdentityContext
initializeContext in interface IdentityStoreConfigurationcontext - The IdentityContext to initializepublic List<Class<? extends CredentialHandler>> getCredentialHandlers()
IdentityStoreConfigurationReturns a List of the CredentialHandler types configured.
getCredentialHandlers in interface IdentityStoreConfigurationpublic Map<String,Object> getCredentialHandlerProperties()
IdentityStoreConfigurationAllows credential handler behaviour to be customized via a set of property values
getCredentialHandlerProperties in interface IdentityStoreConfigurationpublic boolean supportsType(Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
IdentityStoreConfigurationChecks if the configuration supports the given AttributedType and IdentityStoreConfiguration.IdentityOperation.
supportsType in interface IdentityStoreConfigurationpublic boolean supportsPartition()
IdentityStoreConfigurationIndicates if this configuration supports partition storage.
supportsPartition in interface IdentityStoreConfigurationpublic Class<? extends IdentityStore> getIdentityStoreType()
IdentityStoreConfigurationReturns the IdentityStore type associated with this configuration.
getIdentityStoreType in interface IdentityStoreConfigurationpublic <T extends IdentityStore> void setIdentityStoreType(Class<T> identityStoreType)
public Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getSupportedTypes()
getSupportedTypes in interface IdentityStoreConfigurationpublic Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getUnsupportedTypes()
getUnsupportedTypes in interface IdentityStoreConfigurationpublic List<ContextInitializer> getContextInitializers()
getContextInitializers in interface IdentityStoreConfigurationpublic boolean supportsAttribute()
supportsAttribute in interface IdentityStoreConfigurationCopyright © 2013. All Rights Reserved.