@CredentialHandlers(value={org.picketlink.idm.credential.handler.PasswordCredentialHandler.class,org.picketlink.idm.credential.handler.X509CertificateCredentialHandler.class,org.picketlink.idm.credential.handler.DigestCredentialHandler.class,org.picketlink.idm.credential.handler.TOTPCredentialHandler.class})
public class JPAIdentityStore
extends AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>
implements org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>, org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>
| Modifier and Type | Field and Description |
|---|---|
static String |
EVENT_CONTEXT_IDENTITY |
static String |
INVOCATION_CTX_ENTITY_MANAGER |
| Constructor and Description |
|---|
JPAIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition,
String configurationName) |
void |
addAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
<V extends org.picketlink.idm.model.IdentityType> |
countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery) |
<V extends org.picketlink.idm.model.Relationship> |
countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query) |
<V extends org.picketlink.idm.model.IdentityType> |
fetchQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery) |
<V extends org.picketlink.idm.model.Relationship> |
fetchQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query) |
<P extends org.picketlink.idm.model.Partition> |
get(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass,
String name) |
<V extends Serializable> |
getAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
String attributeName) |
Object |
getAttributedTypeEntity(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager) |
String |
getConfigurationName(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
List<EntityMapper> |
getEntityMappers() |
List<EntityMapper> |
getMapperFor(Class<?> attributedType) |
EntityMapper |
getRootMapperForEntity(Class<?> entityClass) |
boolean |
isMappedType(Class mappedClass) |
void |
populateAttributes(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager) |
void |
remove(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
void |
removeAllAttributes(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager) |
void |
removeAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType type,
String attributeName) |
void |
removeAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
<T extends org.picketlink.idm.credential.storage.CredentialStorage> |
retrieveCredentials(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass) |
<T extends org.picketlink.idm.credential.storage.CredentialStorage> |
retrieveCurrentCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass) |
void |
setAttribute(org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute,
javax.persistence.EntityManager entityManager) |
void |
setAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute) |
void |
setup(org.picketlink.idm.config.JPAIdentityStoreConfiguration config) |
void |
storeCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
org.picketlink.idm.credential.storage.CredentialStorage storage) |
void |
update(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition) |
void |
updateAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
add, getConfig, remove, update, updateCredential, validateCredentialspublic static final String INVOCATION_CTX_ENTITY_MANAGER
public static final String EVENT_CONTEXT_IDENTITY
public void setup(org.picketlink.idm.config.JPAIdentityStoreConfiguration config)
setup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>setup in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void addAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
addAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void updateAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
updateAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void removeAttributedType(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType)
removeAttributedType in class AbstractIdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void add(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition,
String configurationName)
add in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public String getConfigurationName(org.picketlink.idm.spi.IdentityContext identityContext, org.picketlink.idm.model.Partition partition)
getConfigurationName in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <P extends org.picketlink.idm.model.Partition> P get(org.picketlink.idm.spi.IdentityContext identityContext,
Class<P> partitionClass,
String name)
get in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void update(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition)
update in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void remove(org.picketlink.idm.spi.IdentityContext identityContext,
org.picketlink.idm.model.Partition partition)
remove in interface org.picketlink.idm.spi.PartitionStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends Serializable> org.picketlink.idm.model.Attribute<V> getAttribute(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.model.AttributedType attributedType, String attributeName)
getAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void removeAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType type,
String attributeName)
removeAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.IdentityType> List<V> fetchQueryResults(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.query.IdentityQuery<V> identityQuery)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.IdentityType> int countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.IdentityQuery<V> identityQuery)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.Relationship> List<V> fetchQueryResults(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.query.RelationshipQuery<V> query)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute)
setAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.model.AttributedType attributedType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute,
javax.persistence.EntityManager entityManager)
public void populateAttributes(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager)
public List<EntityMapper> getMapperFor(Class<?> attributedType)
public EntityMapper getRootMapperForEntity(Class<?> entityClass)
public List<EntityMapper> getEntityMappers()
public void removeAllAttributes(org.picketlink.idm.model.AttributedType attributedType,
javax.persistence.EntityManager entityManager)
public Object getAttributedTypeEntity(org.picketlink.idm.model.AttributedType attributedType, javax.persistence.EntityManager entityManager)
public void storeCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
org.picketlink.idm.credential.storage.CredentialStorage storage)
storeCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.storage.CredentialStorage> T retrieveCurrentCredential(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.model.Account account,
Class<T> storageClass)
retrieveCurrentCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.storage.CredentialStorage> List<T> retrieveCredentials(org.picketlink.idm.spi.IdentityContext context, org.picketlink.idm.model.Account account, Class<T> storageClass)
retrieveCredentials in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <V extends org.picketlink.idm.model.Relationship> int countQueryResults(org.picketlink.idm.spi.IdentityContext context,
org.picketlink.idm.query.RelationshipQuery<V> query)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public boolean isMappedType(Class mappedClass)
Copyright © 2013. All Rights Reserved.