public class TransactionMemoryStore<V extends BasicTransaction> extends edu.uiuc.ncsa.security.storage.MemoryStore<V> implements TransactionStore<V>
Created by Jeff Gaynor
on 11/4/11 at 1:32 PM
Modifier and Type | Class and Description |
---|---|
protected class |
TransactionMemoryStore.TokenIndex
Used internally to track transactions by an identifier (such as a verifier).
|
edu.uiuc.ncsa.security.storage.MemoryStore.MSInitializer
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
TransactionMemoryStore(IdentifiableProvider<V> vIdentifiableProvider) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
protected void |
clearIndices() |
V |
get(AccessToken accessToken) |
V |
get(AuthorizationGrant authorizationGrant) |
V |
get(Verifier verifier) |
TransactionMemoryStore.TokenIndex |
getAgIndex() |
TransactionMemoryStore.TokenIndex |
getAtIndex() |
TransactionMemoryStore.TokenIndex |
getvIndex() |
XMLConverter<V> |
getXMLConverter() |
void |
register(V value)
Almost Identical to put(K,V) but since the object should have an identifier, passing along the key is redundant.
|
V |
remove(Object key) |
protected void |
removeItem(V value)
Override this as needed to remove an item from all stores.
|
void |
save(V value)
Saves an object.
|
void |
update(V value)
Update an existing object.
|
protected void |
updateIndices(V v)
Override this as needed to update any and all indices.
|
create, getAll, getInitializer, realSave, search
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
public TransactionMemoryStore(IdentifiableProvider<V> vIdentifiableProvider)
public TransactionMemoryStore.TokenIndex getAgIndex()
public TransactionMemoryStore.TokenIndex getAtIndex()
public TransactionMemoryStore.TokenIndex getvIndex()
public V get(AuthorizationGrant authorizationGrant)
get
in interface TransactionStore<V extends BasicTransaction>
public V get(AccessToken accessToken)
get
in interface TransactionStore<V extends BasicTransaction>
public V get(Verifier verifier)
get
in interface TransactionStore<V extends BasicTransaction>
protected void updateIndices(V v)
v
- public void register(V value)
Store
register
in interface Store<V extends BasicTransaction>
register
in class edu.uiuc.ncsa.security.storage.MemoryStore<V extends BasicTransaction>
public void save(V value)
Store
save
in interface Store<V extends BasicTransaction>
save
in class edu.uiuc.ncsa.security.storage.MemoryStore<V extends BasicTransaction>
public void update(V value)
Store
update
in interface Store<V extends BasicTransaction>
update
in class edu.uiuc.ncsa.security.storage.MemoryStore<V extends BasicTransaction>
public void clear()
clear
in interface Map<Identifier,V extends BasicTransaction>
clear
in class HashMap<Identifier,V extends BasicTransaction>
protected void clearIndices()
protected void removeItem(V value)
value
- public V remove(Object key)
remove
in interface Map<Identifier,V extends BasicTransaction>
remove
in class HashMap<Identifier,V extends BasicTransaction>
public XMLConverter<V> getXMLConverter()
getXMLConverter
in interface Store<V extends BasicTransaction>
Copyright © 2019. All Rights Reserved.