@ApplicationScoped public class IdentityManagerProducer extends Object
This bean is responsible for initializing the PicketLink IDM subsystem as well produce some core components such as:
PartitionManager.IdentityManager.RelationshipManager.The configuration is built depending on the existence of any IdentityConfiguration produced by the
application. If any configuration is found, it will be used. Otherwise the default configuration will be used.
It's also possible to observe a specific event during the startup of the PicketLink IDM subsystem. In such
situations the application can provide any additional information as a last attempt before the subsystem is fully
initialized. See IdentityConfigurationEvent.
The default configuration is provided by the IdentityStoreAutoConfiguration bean, only if no specific
configuration is provided by the application.
After the creation of the PartitionManager a default partition is always created if any of the provided
configuration supports that. This is very useful for most use cases where only a single partition is necessary.
| Constructor and Description |
|---|
IdentityManagerProducer() |
| Modifier and Type | Method and Description |
|---|---|
org.picketlink.idm.IdentityManager |
createIdentityManager()
IdentityManager instances are produced accordingly to the current Partition in use. |
org.picketlink.idm.PartitionManager |
createPartitionManager() |
org.picketlink.idm.RelationshipManager |
createRelationshipManager() |
void |
init() |
@Inject public void init()
@Produces public org.picketlink.idm.PartitionManager createPartitionManager()
@Produces @RequestScoped public org.picketlink.idm.IdentityManager createIdentityManager()
IdentityManager instances are produced accordingly to the current Partition in use. If no
partition is provided, the default partition will be used.
@Produces @RequestScoped public org.picketlink.idm.RelationshipManager createRelationshipManager()
Copyright © 2013. All Rights Reserved.