Class OA2MTStore<V extends OA2ServiceTransaction>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<edu.uiuc.ncsa.security.core.Identifier,V>
-
- edu.uiuc.ncsa.security.storage.MemoryStore<V>
-
- org.oa4mp.delegation.common.storage.transactions.TransactionMemoryStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.transactions.OA2MTStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>,Serializable,Cloneable,Map<edu.uiuc.ncsa.security.core.Identifier,V>,TransactionStore<V>,RefreshTokenStore<V>,RFC8628Store<V>,OA2TStoreInterface<V>,UsernameFindable<V>
public class OA2MTStore<V extends OA2ServiceTransaction> extends TransactionMemoryStore<V> implements OA2TStoreInterface<V>
Created by Jeff Gaynor
on 3/25/14 at 12:51 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.oa4mp.delegation.common.storage.transactions.TransactionMemoryStore
TransactionMemoryStore.TokenIndex
-
Nested classes/interfaces inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
edu.uiuc.ncsa.security.storage.MemoryStore.MSInitializer
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description OA2MTStore(edu.uiuc.ncsa.security.core.IdentifiableProvider identifiableProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget(AccessTokenImpl accessToken, edu.uiuc.ncsa.security.core.Identifier clientID)Vget(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)Vget(RefreshToken refreshToken)List<edu.uiuc.ncsa.security.core.Identifier>getAllClientID()List<edu.uiuc.ncsa.security.core.Identifier>getByClientID(edu.uiuc.ncsa.security.core.Identifier clientID)VgetByIDTokenID(edu.uiuc.ncsa.security.core.Identifier idTokenIdentifier)Get a transaction by its ID token identifier.VgetByUserCode(String userCode)List<V>getByUsername(String username)List<RFC8628State>getPending()TransactionMemoryStore.TokenIndexgetRTIndex()protected StringgetSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)TokenInfoRecordMapgetTokenInfo(String username)TransactionMemoryStore.TokenIndexgetUserIndex()booleanhasUserCode(String userCode)protected voidremoveItem(V value)protected voidupdateIndices(V v)-
Methods inherited from class org.oa4mp.delegation.common.storage.transactions.TransactionMemoryStore
clear, clearIndices, get, get, getAgIndex, getAtIndex, getByProxyID, getMapConverter, getMostRecent, getProxyIDIndex, getvIndex, getXMLConverter, register, remove, save, search, update
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, realSave, remove, removeByID, search, search, search, size, update
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.oa4mp.server.loader.oauth2.storage.transactions.OA2TStoreInterface
getByProxyID
-
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, getAll, getMostRecent, getXMLConverter, register, remove, removeByID, save, search, search, search, search, size, update, update
-
Methods inherited from interface org.oa4mp.delegation.common.storage.TransactionStore
get, get, getMapConverter
-
-
-
-
Method Detail
-
getRTIndex
public TransactionMemoryStore.TokenIndex getRTIndex()
-
get
public V get(AccessTokenImpl accessToken, edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
getin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
get
public V get(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
getin interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
getUserIndex
public TransactionMemoryStore.TokenIndex getUserIndex()
-
updateIndices
protected void updateIndices(V v)
- Overrides:
updateIndicesin classTransactionMemoryStore<V extends OA2ServiceTransaction>
-
getSubIndexKey
protected String getSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)
-
removeItem
protected void removeItem(V value)
- Overrides:
removeItemin classTransactionMemoryStore<V extends OA2ServiceTransaction>
-
get
public V get(RefreshToken refreshToken)
- Specified by:
getin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Specified by:
getin interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
getByUsername
public List<V> getByUsername(String username)
- Specified by:
getByUsernamein interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Specified by:
getByUsernamein interfaceUsernameFindable<V extends OA2ServiceTransaction>
-
getTokenInfo
public TokenInfoRecordMap getTokenInfo(String username)
- Specified by:
getTokenInfoin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
getPending
public List<RFC8628State> getPending()
- Specified by:
getPendingin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Specified by:
getPendingin interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
getByUserCode
public V getByUserCode(String userCode)
- Specified by:
getByUserCodein interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Specified by:
getByUserCodein interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
getByClientID
public List<edu.uiuc.ncsa.security.core.Identifier> getByClientID(edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
getByClientIDin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
getAllClientID
public List<edu.uiuc.ncsa.security.core.Identifier> getAllClientID()
- Specified by:
getAllClientIDin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
getByIDTokenID
public V getByIDTokenID(edu.uiuc.ncsa.security.core.Identifier idTokenIdentifier)
Description copied from interface:OA2TStoreInterfaceGet a transaction by its ID token identifier. Note that to get the token itself, you must useOA2ServiceTransaction.getUserMetaData().- Specified by:
getByIDTokenIDin interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Returns:
-
hasUserCode
public boolean hasUserCode(String userCode)
- Specified by:
hasUserCodein interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>- Specified by:
hasUserCodein interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
-