@CredentialHandlers(value={PasswordCredentialHandler.class,X509CertificateCredentialHandler.class,DigestCredentialHandler.class,TOTPCredentialHandler.class})
public class FileBasedIdentityStore
extends Object
implements org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>
File based IdentityStore implementation.
| Constructor and Description |
|---|
FileBasedIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType) |
protected <T extends org.picketlink.idm.model.Relationship> |
convertToRelationship(org.picketlink.idm.spi.SecurityContext context,
FileRelationship fileRelationship) |
<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) |
<T extends Serializable> |
getAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identityType,
String attributeName) |
org.picketlink.idm.config.FileIdentityStoreConfiguration |
getConfig() |
protected FileDataSource |
getDataSource() |
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) |
protected Map<String,List<FileRelationship>> |
getRelationshipsForCurrentPartition()
Returns the stored
Relationship instances for the current Partition. |
org.picketlink.idm.model.Role |
getRole(org.picketlink.idm.spi.SecurityContext context,
String roleName) |
org.picketlink.idm.model.User |
getUser(org.picketlink.idm.spi.SecurityContext context,
String loginName) |
protected boolean |
hasParentGroup(org.picketlink.idm.model.Group childGroup,
org.picketlink.idm.model.Group parentGroup) |
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 identityType,
String attributeName) |
void |
removeCredentials(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent)
Remove all stored credentials for the given
Agent. |
<T extends org.picketlink.idm.credential.spi.CredentialStorage> |
retrieveCredentials(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent,
Class<T> storageTyper) |
<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 identityType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute) |
void |
setup(org.picketlink.idm.config.FileIdentityStoreConfiguration 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 void setup(org.picketlink.idm.config.FileIdentityStoreConfiguration config)
setup in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>public org.picketlink.idm.config.FileIdentityStoreConfiguration getConfig()
getConfig in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>public void add(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.AttributedType attributedType)
add in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>public org.picketlink.idm.model.Role getRole(org.picketlink.idm.spi.SecurityContext context,
String roleName)
getRole in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>public void setAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identityType,
org.picketlink.idm.model.Attribute<? extends Serializable> attribute)
setAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>public void removeAttribute(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.IdentityType identityType,
String attributeName)
removeAttribute in interface org.picketlink.idm.spi.IdentityStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>protected <T extends org.picketlink.idm.model.Relationship> T convertToRelationship(org.picketlink.idm.spi.SecurityContext context,
FileRelationship fileRelationship)
protected Map<String,List<FileRelationship>> getRelationshipsForCurrentPartition()
Returns the stored Relationship instances for the current Partition.
protected boolean hasParentGroup(org.picketlink.idm.model.Group childGroup,
org.picketlink.idm.model.Group parentGroup)
protected FileDataSource getDataSource()
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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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.FileIdentityStoreConfiguration>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> storageTyper)
retrieveCredentials in interface org.picketlink.idm.spi.CredentialStore<org.picketlink.idm.config.FileIdentityStoreConfiguration>public void removeCredentials(org.picketlink.idm.spi.SecurityContext context,
org.picketlink.idm.model.Agent agent)
Remove all stored credentials for the given Agent.
agent - Copyright © 2013. All Rights Reserved.