Class KEMemoryStore<V extends KERecord>
- 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.server.loader.oauth2.storage.keys.KEMemoryStore<V>
-
- All Implemented Interfaces:
edu.uiuc.ncsa.security.core.Store<V>,Serializable,Cloneable,Map<edu.uiuc.ncsa.security.core.Identifier,V>,KEStore<V>
public class KEMemoryStore<V extends KERecord> extends edu.uiuc.ncsa.security.storage.MemoryStore<V> implements KEStore<V>
- 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 KEMemoryStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, KEConverter<V> converter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KERecordgetByKID(String kid)For a given key id (kid) find an return.edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord>getByVI(VirtualIssuer vi)Return valid Key Records for a given virtual issuer.edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord>getByVI(VirtualIssuer vi, boolean validKeysOnly)edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetCurrentKeys()Get all currently active keys.edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetCurrentKeys(VirtualIssuer vi)Gets the currently active keys for a given virtual issuer.HashSet<String>getKIDs()Get all of the key ids used in this store.List<V>getMostRecent(int n, List<String> attributes)edu.uiuc.ncsa.security.core.XMLConverter<V>getXMLConverter()-
Methods inherited from class edu.uiuc.ncsa.security.storage.MemoryStore
create, getAll, getInitializer, getMapConverter, keySet, realSave, register, register, remove, removeByID, save, save, search, search, search, search, size, update, update, update, updateRS
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, 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, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
KEMemoryStore
public KEMemoryStore(edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, KEConverter<V> converter)
-
-
Method Detail
-
getXMLConverter
public edu.uiuc.ncsa.security.core.XMLConverter<V> getXMLConverter()
-
getByKID
public KERecord getByKID(String kid)
Description copied from interface:KEStoreFor a given key id (kid) find an return. Key ids are unique in the database. This may be null if there is no suchKERecord.
-
getKIDs
public HashSet<String> getKIDs()
Description copied from interface:KEStoreGet all of the key ids used in this store.
-
getCurrentKeys
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getCurrentKeys(VirtualIssuer vi)
Description copied from interface:KEStoreGets the currently active keys for a given virtual issuer. Note that the virtual issuer for the server is OA2SE#SERVER_VI_ID. A current key is defined as having not expired and being valid.- Specified by:
getCurrentKeysin interfaceKEStore<V extends KERecord>- Returns:
-
getCurrentKeys
public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getCurrentKeys()
Description copied from interface:KEStoreGet all currently active keys.- Specified by:
getCurrentKeysin interfaceKEStore<V extends KERecord>- Returns:
-
getByVI
public edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord> getByVI(VirtualIssuer vi)
Description copied from interface:KEStoreReturn valid Key Records for a given virtual issuer. This means that they have no expired and are valid. The identifier is the ID of the KERecord.
-
-