org.picketlink.idm.internal
public class ContextualIdentityManager extends AbstractIdentityContext implements IdentityManager
Default implementation of the IdentityManager interface.
This lightweight class is intended to be created any time a batch of partition-specific identity management operations are to be performed. In a web environment, it is recommended that instances are scoped to the web request lifecycle.
This class is not thread-safe.
IDENTITY_MANAGER_CTX_PARAMETER
Constructor and Description |
---|
ContextualIdentityManager(Partition partition,
EventBridge eventBridge,
IdGenerator idGenerator,
StoreSelector storeSelector,
RelationshipManager relationshipManager) |
Modifier and Type | Method and Description |
---|---|
void |
add(IdentityType identityType) |
<T extends IdentityType> |
createIdentityQuery(Class<T> identityType) |
<T extends IdentityType> |
lookupIdentityById(Class<T> identityType,
String id) |
void |
remove(IdentityType identityType) |
<T extends CredentialStorage> |
retrieveCredentials(Account account,
Class<T> storageClass) |
<T extends CredentialStorage> |
retrieveCurrentCredential(Account account,
Class<T> storageClass) |
void |
update(IdentityType identityType) |
void |
updateCredential(Account account,
Object credential) |
void |
updateCredential(Account account,
Object credential,
Date effectiveDate,
Date expiryDate) |
void |
validateCredentials(Credentials credentials) |
getEventBridge, getIdGenerator, getParameter, getPartition, getPermissionHandlerPolicy, isParameterSet, setParameter
public ContextualIdentityManager(Partition partition, EventBridge eventBridge, IdGenerator idGenerator, StoreSelector storeSelector, RelationshipManager relationshipManager)
public void add(IdentityType identityType) throws IdentityManagementException
add
in interface IdentityManager
IdentityManagementException
public void update(IdentityType identityType) throws IdentityManagementException
update
in interface IdentityManager
IdentityManagementException
public void remove(IdentityType identityType) throws IdentityManagementException
remove
in interface IdentityManager
IdentityManagementException
public <T extends IdentityType> T lookupIdentityById(Class<T> identityType, String id)
lookupIdentityById
in interface IdentityManager
public <T extends IdentityType> IdentityQuery<T> createIdentityQuery(Class<T> identityType)
createIdentityQuery
in interface IdentityManager
public void validateCredentials(Credentials credentials)
validateCredentials
in interface IdentityManager
public void updateCredential(Account account, Object credential)
updateCredential
in interface IdentityManager
public void updateCredential(Account account, Object credential, Date effectiveDate, Date expiryDate)
updateCredential
in interface IdentityManager
public <T extends CredentialStorage> T retrieveCurrentCredential(Account account, Class<T> storageClass)
retrieveCurrentCredential
in interface IdentityManager
public <T extends CredentialStorage> List<T> retrieveCredentials(Account account, Class<T> storageClass)
retrieveCredentials
in interface IdentityManager
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.