public class IdentityConfiguration extends Object
Defines the runtime configuration for Identity Management.
You should use this class to provide all necessary configuration for the identity stores that should be supported by the IdentityManager.
| Constructor and Description |
|---|
IdentityConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfig(IdentityStoreConfiguration config)
Registers a
IdentityStoreConfiguration. |
IdentityManagerFactory |
buildIdentityManagerFactory()
Builds and returns a new
IdentityManagerFactory instance considering all configurations provided. |
IdentityConfiguration |
contextFactory(SecurityContextFactory securityContextFactory)
Sets the
SecurityContextFactory that should be used. |
FileIdentityStoreConfiguration |
fileStore()
Returns a
FileIdentityStoreConfiguration instance with all configuration options for the file identity store. |
List<IdentityStoreConfiguration> |
getConfiguredStores()
Returns all registered
IdentityStoreConfiguration instances. |
JPAIdentityStoreConfiguration |
jpaStore()
Returns a
JPAIdentityStoreConfiguration instance with all configuration options for the JPA identity store. |
LDAPIdentityStoreConfiguration |
ldapStore()
Returns a
JPAIdentityStoreConfiguration instance with all configuration options for the JPA identity store. |
IdentityConfiguration |
storeFactory(StoreFactory storeFactory)
Sets the
StoreFactory that should be used. |
public FileIdentityStoreConfiguration fileStore()
Returns a FileIdentityStoreConfiguration instance with all configuration options for the file identity store. For
every invocation a new instance will be returned and added to the configuration.
public JPAIdentityStoreConfiguration jpaStore()
Returns a JPAIdentityStoreConfiguration instance with all configuration options for the JPA identity store. For
every invocation a new instance will be returned and added to the configuration.
public LDAPIdentityStoreConfiguration ldapStore()
Returns a JPAIdentityStoreConfiguration instance with all configuration options for the JPA identity store. For
every invocation a new instance will be returned and added to the configuration.
public IdentityConfiguration contextFactory(SecurityContextFactory securityContextFactory)
Sets the SecurityContextFactory that should be used. If not specified, the implementation will use the default
one.
securityContextFactory - public IdentityConfiguration storeFactory(StoreFactory storeFactory)
Sets the StoreFactory that should be used. If not specified, the implementation will use the default one.
storeFactory - public List<IdentityStoreConfiguration> getConfiguredStores()
Returns all registered IdentityStoreConfiguration instances.
public void addConfig(IdentityStoreConfiguration config)
Registers a IdentityStoreConfiguration. This method can be used to provide other
IdentityStoreConfiguration for identity stores that are not provided by default.
config - public IdentityManagerFactory buildIdentityManagerFactory() throws SecurityConfigurationException
Builds and returns a new IdentityManagerFactory instance considering all configurations provided.
SecurityConfigurationException - if some error occurs when creating an IdentityManagerFactory instance.Copyright © 2013. All Rights Reserved.