Class MemoryAssetStore
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<edu.uiuc.ncsa.security.core.Identifier,V>
-
- edu.uiuc.ncsa.security.storage.MemoryStore<Asset>
-
- org.oa4mp.client.api.storage.MemoryAssetStore
-
- All Implemented Interfaces:
AssetStore
,edu.uiuc.ncsa.security.core.Store<Asset>
,Serializable
,Cloneable
,Map<edu.uiuc.ncsa.security.core.Identifier,Asset>
public class MemoryAssetStore extends edu.uiuc.ncsa.security.storage.MemoryStore<Asset> implements AssetStore
Created by Jeff Gaynor
on 1/28/13 at 3:07 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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 MemoryAssetStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<Asset> identifiableProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Asset
get(String identifier)
Simplifying calls.Asset
getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.List<Asset>
getMostRecent(int n, List<String> attributes)
edu.uiuc.ncsa.security.core.XMLConverter<Asset>
getXMLConverter()
void
putByToken(Asset asset)
void
save(Asset value)
void
save(String identifier, Asset v)
-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, getMapConverter, realSave, register, remove, search, search, search, size, update
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, 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
-
-
-
-
Constructor Detail
-
MemoryAssetStore
public MemoryAssetStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<Asset> identifiableProvider)
-
-
Method Detail
-
get
public Asset get(String identifier)
Description copied from interface:AssetStore
Simplifying calls. These should simply convert the string to an identifier.- Specified by:
get
in interfaceAssetStore
- Returns:
-
save
public void save(String identifier, Asset v)
- Specified by:
save
in interfaceAssetStore
-
getByToken
public Asset getByToken(edu.uiuc.ncsa.security.core.Identifier token)
Description copied from interface:AssetStore
Part of solution to OAUTH-146: JSESSIONID bug causes session crossover if users have repeated failed attempts to get a cert and keep opening a new browser window each time.- Specified by:
getByToken
in interfaceAssetStore
- Returns:
-
putByToken
public void putByToken(Asset asset)
- Specified by:
putByToken
in interfaceAssetStore
-
save
public void save(Asset value)
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<Asset> getXMLConverter()
- Specified by:
getXMLConverter
in interfaceedu.uiuc.ncsa.security.core.Store<Asset>
-
-