public abstract class BaseAbstractStoreConfiguration<C extends BaseAbstractStoreConfiguration<?>> extends Object implements IdentityStoreConfiguration
Constructor and Description |
---|
BaseAbstractStoreConfiguration(Map<FeatureSet.FeatureGroup,Set<FeatureSet.FeatureOperation>> supportedFeatures,
Map<Class<? extends Relationship>,Set<FeatureSet.FeatureOperation>> supportedRelationships,
Set<String> realms,
Set<String> tiers,
List<ContextInitializer> contextInitializers,
Map<String,Object> credentialHandlerProperties,
List<Class<? extends CredentialHandler>> credentialHandlers) |
Modifier and Type | Method and Description |
---|---|
List<ContextInitializer> |
getContextInitializers()
Returns all
ContextInitializer instances configured for a specific identity store. |
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. |
Set<String> |
getRealms()
Returns all configured realms.
|
Map<FeatureSet.FeatureGroup,Set<FeatureSet.FeatureOperation>> |
getSupportedFeatures() |
Map<Class<? extends Relationship>,Set<FeatureSet.FeatureOperation>> |
getSupportedRelationships() |
Set<String> |
getTiers() |
void |
init()
Initializes the store configuration with the specified
FeatureSet . |
protected abstract void |
initConfig() |
protected void |
removeFeature(FeatureSet.FeatureGroup feature)
Removes the given
FeatureSet.FeatureGroup and all supported FeatureSet.FeatureOperation from the features set. |
boolean |
supportsFeature(FeatureSet.FeatureGroup feature,
FeatureSet.FeatureOperation operation)
Check if the
FeatureSet.FeatureGroup is supported. |
boolean |
supportsRelationship(Class<? extends Relationship> relationshipType,
FeatureSet.FeatureOperation operation)
Check if the given Relationship type is supported.
|
public BaseAbstractStoreConfiguration(Map<FeatureSet.FeatureGroup,Set<FeatureSet.FeatureOperation>> supportedFeatures, Map<Class<? extends Relationship>,Set<FeatureSet.FeatureOperation>> supportedRelationships, Set<String> realms, Set<String> tiers, List<ContextInitializer> contextInitializers, Map<String,Object> credentialHandlerProperties, List<Class<? extends CredentialHandler>> credentialHandlers)
public final void init() throws SecurityConfigurationException
IdentityStoreConfiguration
Initializes the store configuration with the specified FeatureSet
.
init
in interface IdentityStoreConfiguration
SecurityConfigurationException
protected abstract void initConfig()
public List<ContextInitializer> getContextInitializers()
IdentityStoreConfiguration
Returns all ContextInitializer
instances configured for a specific identity store.
getContextInitializers
in interface IdentityStoreConfiguration
public List<Class<? extends CredentialHandler>> getCredentialHandlers()
IdentityStoreConfiguration
Returns a List
of the CredentialHandler
types configured.
getCredentialHandlers
in interface IdentityStoreConfiguration
public Map<String,Object> getCredentialHandlerProperties()
IdentityStoreConfiguration
Allows credential handler behaviour to be customized via a set of property values
getCredentialHandlerProperties
in interface IdentityStoreConfiguration
public boolean supportsFeature(FeatureSet.FeatureGroup feature, FeatureSet.FeatureOperation operation)
Check if the FeatureSet.FeatureGroup
is supported.
supportsFeature
in interface IdentityStoreConfiguration
feature
- operation
- public boolean supportsRelationship(Class<? extends Relationship> relationshipType, FeatureSet.FeatureOperation operation)
Check if the given Relationship type is supported.
supportsRelationship
in interface IdentityStoreConfiguration
feature
- operation
- public Set<String> getRealms()
IdentityStoreConfiguration
Returns all configured realms.
getRealms
in interface IdentityStoreConfiguration
public Set<String> getTiers()
getTiers
in interface IdentityStoreConfiguration
public Map<FeatureSet.FeatureGroup,Set<FeatureSet.FeatureOperation>> getSupportedFeatures()
getSupportedFeatures
in interface IdentityStoreConfiguration
public Map<Class<? extends Relationship>,Set<FeatureSet.FeatureOperation>> getSupportedRelationships()
getSupportedRelationships
in interface IdentityStoreConfiguration
protected void removeFeature(FeatureSet.FeatureGroup feature) throws SecurityConfigurationException
Removes the given FeatureSet.FeatureGroup
and all supported FeatureSet.FeatureOperation
from the features set.
feature
- SecurityConfigurationException
- If this instance is locked and changes are no more allowed.Copyright © 2013. All Rights Reserved.