@CredentialHandlers(value={PasswordCredentialHandler.class,X509CertificateCredentialHandler.class,DigestCredentialHandler.class})
public class JPAIdentityStore
extends Object
implements org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>, org.picketlink.idm.spi.CredentialStore, org.picketlink.idm.spi.PartitionStore
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_CONTEXT_GROUP_ENTITY |
static String |
EVENT_CONTEXT_ROLE_ENTITY |
static String |
EVENT_CONTEXT_USER_ENTITY |
static String |
INVOCATION_CTX_ENTITY_MANAGER |
| Constructor and Description |
|---|
JPAIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.picketlink.idm.model.AttributedType value) |
protected org.picketlink.idm.model.Partition |
convertPartitionEntityToPartition(Object partitionObject) |
<T extends org.picketlink.idm.model.IdentityType> |
countQueryResults(org.picketlink.idm.query.IdentityQuery<T> identityQuery) |
<T extends org.picketlink.idm.model.Relationship> |
countQueryResults(org.picketlink.idm.query.RelationshipQuery<T> query) |
void |
createPartition(org.picketlink.idm.model.Partition partition) |
<T extends org.picketlink.idm.model.IdentityType> |
fetchQueryResults(org.picketlink.idm.query.IdentityQuery<T> identityQuery) |
<T extends org.picketlink.idm.model.Relationship> |
fetchQueryResults(org.picketlink.idm.query.RelationshipQuery<T> query) |
org.picketlink.idm.model.Agent |
getAgent(String loginName) |
protected List<String> |
getAllowedPartitionIds(org.picketlink.idm.model.Partition currentPartition) |
<T extends Serializable> |
getAttribute(org.picketlink.idm.model.IdentityType identityType,
String attributeName) |
JPAIdentityStoreConfiguration |
getConfig() |
org.picketlink.idm.spi.IdentityStoreInvocationContext |
getContext() |
protected org.picketlink.idm.model.Partition |
getCurrentPartition() |
protected org.picketlink.idm.model.Realm |
getCurrentRealm() |
protected javax.persistence.EntityManager |
getEntityManager() |
org.picketlink.idm.model.Group |
getGroup(String groupPath) |
org.picketlink.idm.model.Group |
getGroup(String name,
org.picketlink.idm.model.Group parent) |
org.picketlink.idm.model.Realm |
getRealm(String realmName) |
org.picketlink.idm.model.Role |
getRole(String name) |
org.picketlink.idm.model.Tier |
getTier(String tierName) |
org.picketlink.idm.model.User |
getUser(String loginName) |
protected Object |
lookupIdentityObjectById(String id)
Lookup a stored
IdentityType using the id. |
protected Object |
lookupPartitionObject(org.picketlink.idm.model.Partition partition) |
void |
remove(org.picketlink.idm.model.AttributedType attributedType) |
void |
removeAttribute(org.picketlink.idm.model.IdentityType identity,
String name) |
void |
removePartition(org.picketlink.idm.model.Partition partition) |
<T extends org.picketlink.idm.credential.spi.CredentialStorage> |
retrieveCredentials(org.picketlink.idm.model.Agent agent,
Class<T> storageClass) |
<T extends org.picketlink.idm.credential.spi.CredentialStorage> |
retrieveCurrentCredential(org.picketlink.idm.model.Agent agent,
Class<T> storageClass) |
void |
setAttribute(org.picketlink.idm.model.IdentityType identity,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute) |
void |
setup(JPAIdentityStoreConfiguration config,
org.picketlink.idm.spi.IdentityStoreInvocationContext context) |
void |
storeCredential(org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.spi.CredentialStorage storage) |
void |
update(org.picketlink.idm.model.AttributedType attributedType) |
void |
updateCredential(org.picketlink.idm.model.Agent agent,
Object credential,
Date effectiveDate,
Date expiryDate) |
void |
validateCredentials(org.picketlink.idm.credential.Credentials credentials) |
public static final String INVOCATION_CTX_ENTITY_MANAGER
public static final String EVENT_CONTEXT_USER_ENTITY
public static final String EVENT_CONTEXT_GROUP_ENTITY
public static final String EVENT_CONTEXT_ROLE_ENTITY
public void setup(JPAIdentityStoreConfiguration config, org.picketlink.idm.spi.IdentityStoreInvocationContext context)
setup in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public JPAIdentityStoreConfiguration getConfig()
getConfig in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.spi.IdentityStoreInvocationContext getContext()
getContext in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void add(org.picketlink.idm.model.AttributedType value)
add in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void createPartition(org.picketlink.idm.model.Partition partition)
createPartition in interface org.picketlink.idm.spi.PartitionStorepublic org.picketlink.idm.model.Realm getRealm(String realmName)
getRealm in interface org.picketlink.idm.spi.PartitionStorepublic org.picketlink.idm.model.Tier getTier(String tierName)
getTier in interface org.picketlink.idm.spi.PartitionStorepublic void removePartition(org.picketlink.idm.model.Partition partition)
removePartition in interface org.picketlink.idm.spi.PartitionStorepublic void update(org.picketlink.idm.model.AttributedType attributedType)
update in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void remove(org.picketlink.idm.model.AttributedType attributedType)
remove in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.model.User getUser(String loginName)
getUser in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Group getGroup(String groupPath)
getGroup in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Group getGroup(String name, org.picketlink.idm.model.Group parent)
getGroup in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Role getRole(String name)
getRole in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Agent getAgent(String loginName)
getAgent in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.Relationship> List<T> fetchQueryResults(org.picketlink.idm.query.RelationshipQuery<T> query)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.IdentityType> List<T> fetchQueryResults(org.picketlink.idm.query.IdentityQuery<T> identityQuery)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.IdentityType> int countQueryResults(org.picketlink.idm.query.IdentityQuery<T> identityQuery)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.Relationship> int countQueryResults(org.picketlink.idm.query.RelationshipQuery<T> query)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.model.IdentityType identity,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute)
setAttribute in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void removeAttribute(org.picketlink.idm.model.IdentityType identity,
String name)
removeAttribute in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends Serializable> org.picketlink.idm.model.Attribute<T> getAttribute(org.picketlink.idm.model.IdentityType identityType, String attributeName)
getAttribute in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.spi.CredentialStorage> List<T> retrieveCredentials(org.picketlink.idm.model.Agent agent, Class<T> storageClass)
retrieveCredentials in interface org.picketlink.idm.spi.CredentialStorepublic <T extends org.picketlink.idm.credential.spi.CredentialStorage> T retrieveCurrentCredential(org.picketlink.idm.model.Agent agent,
Class<T> storageClass)
retrieveCurrentCredential in interface org.picketlink.idm.spi.CredentialStorepublic void storeCredential(org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.spi.CredentialStorage storage)
storeCredential in interface org.picketlink.idm.spi.CredentialStorepublic void updateCredential(org.picketlink.idm.model.Agent agent,
Object credential,
Date effectiveDate,
Date expiryDate)
updateCredential in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>public void validateCredentials(org.picketlink.idm.credential.Credentials credentials)
validateCredentials in interface org.picketlink.idm.spi.IdentityStore<JPAIdentityStoreConfiguration>protected org.picketlink.idm.model.Partition convertPartitionEntityToPartition(Object partitionObject)
protected org.picketlink.idm.model.Realm getCurrentRealm()
protected org.picketlink.idm.model.Partition getCurrentPartition()
protected javax.persistence.EntityManager getEntityManager()
protected Object lookupIdentityObjectById(String id)
Lookup a stored IdentityType using the id.
id - protected Object lookupPartitionObject(org.picketlink.idm.model.Partition partition)
Copyright © 2013. All Rights Reserved.