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.transactions.storage.TransactionMemoryStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.transactions.OA2MTStore<V>
-
- All Implemented Interfaces:
RefreshTokenStore<V>
,RFC8628Store<V>
,OA2TStoreInterface<V>
,UsernameFindable<V>
,TransactionStore<V>
,edu.uiuc.ncsa.security.core.Store<V>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,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 edu.uiuc.ncsa.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 V
get(AccessTokenImpl accessToken, edu.uiuc.ncsa.security.core.Identifier clientID)
V
get(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)
V
get(RefreshToken refreshToken)
V
getByUserCode(String userCode)
List<V>
getByUsername(String username)
List<RFC8628State>
getPending()
TransactionMemoryStore.TokenIndex
getRTIndex()
protected String
getSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)
TokenInfoRecordMap
getTokenInfo(String username)
TransactionMemoryStore.TokenIndex
getUserIndex()
boolean
hasUserCode(String userCode)
protected void
removeItem(V value)
Override this as needed to remove an item from all stores.protected void
updateIndices(V v)
Override this as needed to update any and all indices.-
Methods inherited from class edu.uiuc.ncsa.oa4mp.delegation.common.storage.transactions.TransactionMemoryStore
clear, clearIndices, get, 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, search, search, size
-
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 edu.uiuc.ncsa.myproxy.oa4mp.oauth2.storage.transactions.OA2TStoreInterface
getByProxyID
-
Methods inherited from interface edu.uiuc.ncsa.security.core.Store
create, getAll, getMostRecent, getXMLConverter, register, remove, save, search, search, search, size, update
-
Methods inherited from interface edu.uiuc.ncsa.oa4mp.delegation.common.storage.TransactionStore
get, 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:
get
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
get
public V get(RefreshTokenImpl refreshToken, edu.uiuc.ncsa.security.core.Identifier clientID)
- Specified by:
get
in interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
getUserIndex
public TransactionMemoryStore.TokenIndex getUserIndex()
-
updateIndices
protected void updateIndices(V v)
Description copied from class:TransactionMemoryStore
Override this as needed to update any and all indices.- Overrides:
updateIndices
in classTransactionMemoryStore<V extends OA2ServiceTransaction>
-
getSubIndexKey
protected String getSubIndexKey(String token, edu.uiuc.ncsa.security.core.Identifier clientID)
-
removeItem
protected void removeItem(V value)
Description copied from class:TransactionMemoryStore
Override this as needed to remove an item from all stores.- Overrides:
removeItem
in classTransactionMemoryStore<V extends OA2ServiceTransaction>
-
get
public V get(RefreshToken refreshToken)
- Specified by:
get
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
get
in interfaceRefreshTokenStore<V extends OA2ServiceTransaction>
-
getByUsername
public List<V> getByUsername(String username)
- Specified by:
getByUsername
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getByUsername
in interfaceUsernameFindable<V extends OA2ServiceTransaction>
-
getTokenInfo
public TokenInfoRecordMap getTokenInfo(String username)
- Specified by:
getTokenInfo
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
-
getPending
public List<RFC8628State> getPending()
- Specified by:
getPending
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getPending
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
getByUserCode
public V getByUserCode(String userCode)
- Specified by:
getByUserCode
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
getByUserCode
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
hasUserCode
public boolean hasUserCode(String userCode)
- Specified by:
hasUserCode
in interfaceOA2TStoreInterface<V extends OA2ServiceTransaction>
- Specified by:
hasUserCode
in interfaceRFC8628Store<V extends OA2ServiceTransaction>
-
-