@CredentialHandlers(value=TokenCredentialHandler.class) public class TokenIdentityStore extends AbstractIdentityStore<TokenStoreConfiguration> implements CredentialStore<TokenStoreConfiguration>, PartitionStore<TokenStoreConfiguration>
| Constructor and Description |
|---|
TokenIdentityStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IdentityContext identityContext,
Partition partition,
String configurationName) |
<V extends IdentityType> |
fetchQueryResults(IdentityContext context,
IdentityQuery<V> query) |
<V extends Relationship> |
fetchQueryResults(IdentityContext context,
RelationshipQuery<V> query) |
<P extends Partition> |
get(IdentityContext identityContext,
Class<P> partitionClass) |
<P extends Partition> |
get(IdentityContext identityContext,
Class<P> partitionClass,
String name) |
String |
getConfigurationName(IdentityContext identityContext,
Partition partition) |
<P extends Partition> |
lookupById(IdentityContext context,
Class<P> partitionClass,
String id) |
void |
remove(IdentityContext identityContext,
Partition partition) |
protected void |
removeAttributedType(IdentityContext context,
AttributedType attributedType) |
void |
removeCredential(IdentityContext identityContext,
Account account,
Class<? extends CredentialStorage> aClass)
Removes all credentials stored by a certain
CredentialStorage associated
with the given Account. |
protected void |
removeCredentials(IdentityContext context,
Account account) |
protected void |
removeFromRelationships(IdentityContext context,
IdentityType identityType) |
<T extends CredentialStorage> |
retrieveCredentials(IdentityContext context,
Account account,
Class<T> storageClass)
Returns a list of all credential state of the specified
T, for the specified Account. |
<T extends CredentialStorage> |
retrieveCurrentCredential(IdentityContext context,
Account account,
Class<T> storageClass)
Returns the currently active credential state of the specified
T, for the specified Account. |
void |
setup(TokenStoreConfiguration config)
Sets the configuration and context in which the IdentityStore will execute its operations
|
void |
storeCredential(IdentityContext context,
Account account,
CredentialStorage storage)
Stores the specified credential state.
|
void |
update(IdentityContext identityContext,
Partition partition) |
protected void |
updateAttributedType(IdentityContext context,
AttributedType attributedType) |
add, addAttributedType, countQueryResults, countQueryResults, getConfig, remove, update, updateCredential, validateCredentialsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, countQueryResults, countQueryResults, getConfig, remove, update, updateCredential, validateCredentialspublic void setup(TokenStoreConfiguration config)
IdentityStoresetup in interface IdentityStore<TokenStoreConfiguration>setup in class AbstractIdentityStore<TokenStoreConfiguration>protected void removeFromRelationships(IdentityContext context, IdentityType identityType)
removeFromRelationships in class AbstractIdentityStore<TokenStoreConfiguration>protected void removeCredentials(IdentityContext context, Account account)
removeCredentials in class AbstractIdentityStore<TokenStoreConfiguration>protected void updateAttributedType(IdentityContext context, AttributedType attributedType)
updateAttributedType in class AbstractIdentityStore<TokenStoreConfiguration>protected void removeAttributedType(IdentityContext context, AttributedType attributedType)
removeAttributedType in class AbstractIdentityStore<TokenStoreConfiguration>public <V extends IdentityType> List<V> fetchQueryResults(IdentityContext context, IdentityQuery<V> query)
fetchQueryResults in interface IdentityStore<TokenStoreConfiguration>public <V extends Relationship> List<V> fetchQueryResults(IdentityContext context, RelationshipQuery<V> query)
fetchQueryResults in interface IdentityStore<TokenStoreConfiguration>public void storeCredential(IdentityContext context, Account account, CredentialStorage storage)
CredentialStorestoreCredential in interface CredentialStore<TokenStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storage - The credential storage instance to be stored.public <T extends CredentialStorage> T retrieveCurrentCredential(IdentityContext context, Account account, Class<T> storageClass)
CredentialStoreT, for the specified Account.retrieveCurrentCredential in interface CredentialStore<TokenStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storageClass - The credential storage type specifying which credential types should be removed.public <T extends CredentialStorage> List<T> retrieveCredentials(IdentityContext context, Account account, Class<T> storageClass)
CredentialStoreT, for the specified Account.retrieveCredentials in interface CredentialStore<TokenStoreConfiguration>context - The contextual invocation context.account - The account which credentials should be removed.storageClass - The credential storage type specifying which credential types should be removed.public void removeCredential(IdentityContext identityContext, Account account, Class<? extends CredentialStorage> aClass)
CredentialStoreRemoves all credentials stored by a certain CredentialStorage associated
with the given Account.
removeCredential in interface CredentialStore<TokenStoreConfiguration>identityContext - The contextual invocation context.account - The account which credentials should be removed.aClass - The credential storage type specifying which credential types should be removed.public String getConfigurationName(IdentityContext identityContext, Partition partition)
getConfigurationName in interface PartitionStore<TokenStoreConfiguration>public <P extends Partition> P get(IdentityContext identityContext, Class<P> partitionClass, String name)
get in interface PartitionStore<TokenStoreConfiguration>public <P extends Partition> List<P> get(IdentityContext identityContext, Class<P> partitionClass)
get in interface PartitionStore<TokenStoreConfiguration>public <P extends Partition> P lookupById(IdentityContext context, Class<P> partitionClass, String id)
lookupById in interface PartitionStore<TokenStoreConfiguration>public void add(IdentityContext identityContext, Partition partition, String configurationName)
add in interface PartitionStore<TokenStoreConfiguration>public void update(IdentityContext identityContext, Partition partition)
update in interface PartitionStore<TokenStoreConfiguration>public void remove(IdentityContext identityContext, Partition partition)
remove in interface PartitionStore<TokenStoreConfiguration>Copyright © 2024. All rights reserved.