public class IdentityManagerFactory extends Object implements Serializable
Factory class for IdentityManager instances.
Before using this factory you need a valid IdentityConfiguration, usually created using the
IdentityConfigurationBuilder.
| Constructor and Description |
|---|
IdentityManagerFactory(org.picketlink.idm.config.IdentityConfiguration identityConfig)
Creates an instance considering all configuration provided by the given
IdentityConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
org.picketlink.idm.IdentityManager |
createIdentityManager()
Creates a
IdentityManager instance using the default realm (Realm.DEFAULT_REALM). |
org.picketlink.idm.IdentityManager |
createIdentityManager(org.picketlink.idm.model.Partition partition)
Creates a
IdentityManager instance for the given Partition. |
org.picketlink.idm.model.Realm |
getRealm(String name)
Returns a
Realm configured with the given name. |
org.picketlink.idm.model.Tier |
getTier(String name)
Returns a
Tier configured with the given name. |
public IdentityManagerFactory(org.picketlink.idm.config.IdentityConfiguration identityConfig)
Creates an instance considering all configuration provided by the given IdentityConfiguration.
identityConfig - public org.picketlink.idm.IdentityManager createIdentityManager()
throws org.picketlink.idm.config.SecurityConfigurationException
Creates a IdentityManager instance using the default realm (Realm.DEFAULT_REALM).
org.picketlink.idm.config.SecurityConfigurationException - if the default realm was not configured.public org.picketlink.idm.IdentityManager createIdentityManager(org.picketlink.idm.model.Partition partition)
throws org.picketlink.idm.config.SecurityConfigurationException,
org.picketlink.idm.IdentityManagementException
Creates a IdentityManager instance for the given Partition.
partition - org.picketlink.idm.config.SecurityConfigurationException - if the default realm was not configured.org.picketlink.idm.IdentityManagementException - if provided a null partition or some error occurs during the creation..public org.picketlink.idm.model.Realm getRealm(String name)
Returns a Realm configured with the given name.
name - public org.picketlink.idm.model.Tier getTier(String name)
Returns a Tier configured with the given name.
name - Copyright © 2013. All Rights Reserved.