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,
boolean supportsCredential,
boolean supportsPermissions) |
Modifier and Type | Method and Description |
---|---|
void |
addContextInitializer(ContextInitializer contextInitializer)
Adds a
ContextInitializer instance which will be used to initialize IdentityContext s for
this configuration. |
List<ContextInitializer> |
getContextInitializers()
Returns a List of the configured context initializers for this configuration.
|
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 |
initializeContext(IdentityContext context,
IdentityStore<?> store)
Initialize the specified
IdentityContext |
<T extends IdentityStore> |
setIdentityStoreType(Class<T> identityStoreType) |
boolean |
supportsAttribute()
Indicates if ad-hoc attributes are supported.
|
boolean |
supportsCredential()
Indicates if credentials are supported.
|
boolean |
supportsPartition()
Indicates if this configuration supports partition storage.
|
boolean |
supportsPermissions()
Indicates whether this configuration supports the storing of resource permissions
|
boolean |
supportsRelationship()
Indicates if relationships are supported.
|
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, boolean supportsCredential, boolean supportsPermissions)
public void addContextInitializer(ContextInitializer contextInitializer)
IdentityStoreConfiguration
Adds a ContextInitializer
instance which will be used to initialize IdentityContext
s for
this configuration.
addContextInitializer
in interface IdentityStoreConfiguration
public void initializeContext(IdentityContext context, IdentityStore<?> store)
IdentityStoreConfiguration
Initialize the specified IdentityContext
initializeContext
in interface IdentityStoreConfiguration
context
- The IdentityContext
to initializepublic 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 supportsType(Class<? extends AttributedType> type, IdentityStoreConfiguration.IdentityOperation operation)
IdentityStoreConfiguration
Checks if the configuration supports the given AttributedType
and IdentityStoreConfiguration.IdentityOperation
.
supportsType
in interface IdentityStoreConfiguration
public Class<? extends IdentityStore> getIdentityStoreType()
IdentityStoreConfiguration
Returns the IdentityStore
type associated with this configuration.
getIdentityStoreType
in interface IdentityStoreConfiguration
public <T extends IdentityStore> void setIdentityStoreType(Class<T> identityStoreType)
public Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getSupportedTypes()
getSupportedTypes
in interface IdentityStoreConfiguration
public Map<Class<? extends AttributedType>,Set<IdentityStoreConfiguration.IdentityOperation>> getUnsupportedTypes()
getUnsupportedTypes
in interface IdentityStoreConfiguration
public List<ContextInitializer> getContextInitializers()
IdentityStoreConfiguration
getContextInitializers
in interface IdentityStoreConfiguration
public boolean supportsPartition()
IdentityStoreConfiguration
Indicates if this configuration supports partition storage.
supportsPartition
in interface IdentityStoreConfiguration
public boolean supportsRelationship()
IdentityStoreConfiguration
Indicates if relationships are supported.
supportsRelationship
in interface IdentityStoreConfiguration
public boolean supportsAttribute()
IdentityStoreConfiguration
Indicates if ad-hoc attributes are supported.
supportsAttribute
in interface IdentityStoreConfiguration
public boolean supportsCredential()
IdentityStoreConfiguration
Indicates if credentials are supported.
supportsCredential
in interface IdentityStoreConfiguration
public boolean supportsPermissions()
IdentityStoreConfiguration
supportsPermissions
in interface IdentityStoreConfiguration
Copyright © 2018 JBoss by Red Hat. All rights reserved.