@CredentialHandlers(value={PasswordCredentialHandler.class,X509CertificateCredentialHandler.class,DigestCredentialHandler.class,TOTPCredentialHandler.class})
public class JPAIdentityStore
extends Object
implements org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>
| 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.spi.SecurityContext context,
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.spi.SecurityContext context,
org.picketlink.idm.query.IdentityQuery<T> identityQuery) |
<T extends org.picketlink.idm.model.Relationship> |
countQueryResults(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.query.RelationshipQuery<T> query) |
<T extends org.picketlink.idm.model.IdentityType> |
fetchQueryResults(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.query.IdentityQuery<T> identityQuery) |
<T extends org.picketlink.idm.model.Relationship> |
fetchQueryResults(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.query.RelationshipQuery<T> query) |
org.picketlink.idm.model.Agent |
getAgent(org.picketlink.idm.spi.SecurityContext context,
String loginName) |
protected List<String> |
getAllowedPartitionIds(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Partition currentPartition) |
<T extends Serializable> |
getAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identityType,
String attributeName) |
org.picketlink.idm.config.JPAIdentityStoreConfiguration |
getConfig() |
protected javax.persistence.EntityManager |
getEntityManager(org.picketlink.idm.spi.SecurityContext context) |
org.picketlink.idm.model.Group |
getGroup(org.picketlink.idm.spi.SecurityContext context,
String groupPath) |
org.picketlink.idm.model.Group |
getGroup(org.picketlink.idm.spi.SecurityContext context,
String name,
org.picketlink.idm.model.Group parent) |
org.picketlink.idm.model.Role |
getRole(org.picketlink.idm.spi.SecurityContext context,
String name) |
org.picketlink.idm.model.User |
getUser(org.picketlink.idm.spi.SecurityContext context,
String loginName) |
protected Object |
lookupAndCreatePartitionObject(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Partition partition) |
protected Object |
lookupIdentityObjectById(org.picketlink.idm.spi.SecurityContext context,
String id)
Lookup a stored
IdentityType using the id. |
void |
remove(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
void |
removeAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identity,
String name) |
<T extends org.picketlink.idm.credential.spi.CredentialStorage> |
retrieveCredentials(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Class<T> storageClass) |
<T extends org.picketlink.idm.credential.spi.CredentialStorage> |
retrieveCurrentCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Class<T> storageClass) |
void |
setAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identity,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute) |
void |
setup(org.picketlink.idm.config.JPAIdentityStoreConfiguration config) |
void |
storeCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.spi.CredentialStorage storage) |
void |
update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
void |
updateCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Object credential,
Date effectiveDate,
Date expiryDate) |
void |
validateCredentials(org.picketlink.idm.spi.SecurityContext context,
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(org.picketlink.idm.config.JPAIdentityStoreConfiguration config)
setup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.config.JPAIdentityStoreConfiguration getConfig()
getConfig in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void add(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType value)
add in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void update(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType)
update in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void remove(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType)
remove in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.model.User getUser(org.picketlink.idm.spi.SecurityContext context,
String loginName)
getUser in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Group getGroup(org.picketlink.idm.spi.SecurityContext context,
String groupPath)
getGroup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Group getGroup(org.picketlink.idm.spi.SecurityContext context,
String name,
org.picketlink.idm.model.Group parent)
getGroup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Role getRole(org.picketlink.idm.spi.SecurityContext context,
String name)
getRole in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public org.picketlink.idm.model.Agent getAgent(org.picketlink.idm.spi.SecurityContext context,
String loginName)
getAgent in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.Relationship> List<T> fetchQueryResults(org.picketlink.idm.spi.SecurityContext context, org.picketlink.idm.query.RelationshipQuery<T> query)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.IdentityType> List<T> fetchQueryResults(org.picketlink.idm.spi.SecurityContext context, org.picketlink.idm.query.IdentityQuery<T> identityQuery)
fetchQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.IdentityType> int countQueryResults(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.query.IdentityQuery<T> identityQuery)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.model.Relationship> int countQueryResults(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.query.RelationshipQuery<T> query)
countQueryResults in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identity,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute)
setAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void removeAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identity,
String name)
removeAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends Serializable> org.picketlink.idm.model.Attribute<T> getAttribute(org.picketlink.idm.spi.SecurityContext context, org.picketlink.idm.model.IdentityType identityType, String attributeName)
getAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.spi.CredentialStorage> List<T> retrieveCredentials(org.picketlink.idm.spi.SecurityContext context, org.picketlink.idm.model.Agent agent, Class<T> storageClass)
retrieveCredentials in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public <T extends org.picketlink.idm.credential.spi.CredentialStorage> T retrieveCurrentCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Class<T> storageClass)
retrieveCurrentCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void storeCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
org.picketlink.idm.credential.spi.CredentialStorage storage)
storeCredential in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void updateCredential(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Object credential,
Date effectiveDate,
Date expiryDate)
updateCredential in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>public void validateCredentials(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.credential.Credentials credentials)
validateCredentials in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.JPAIdentityStoreConfiguration>protected org.picketlink.idm.model.Partition convertPartitionEntityToPartition(Object partitionObject)
protected javax.persistence.EntityManager getEntityManager(org.picketlink.idm.spi.SecurityContext context)
protected Object lookupIdentityObjectById(org.picketlink.idm.spi.SecurityContext context, String id)
Lookup a stored IdentityType using the id.
id - protected Object lookupAndCreatePartitionObject(org.picketlink.idm.spi.SecurityContext context, org.picketlink.idm.model.Partition partition)
Copyright © 2013. All Rights Reserved.