Class KEFileStore<V extends KERecord>
- java.lang.Object
-
- edu.uiuc.ncsa.security.storage.IndexedStreamStore<V>
-
- edu.uiuc.ncsa.security.storage.FileStore<V>
-
- org.oa4mp.server.loader.oauth2.storage.keys.KEFileStore<V>
-
-
Constructor Summary
Constructors Constructor Description KEFileStore(File directory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> idp, edu.uiuc.ncsa.security.storage.data.MapConverter<V> cp, boolean removeEmptyFiles, boolean removeFailedFiles)KEFileStore(File storeDirectory, File indexDirectory, edu.uiuc.ncsa.security.core.IdentifiableProvider<V> identifiableProvider, edu.uiuc.ncsa.security.storage.data.MapConverter<V> converter, boolean removeEmptyFiles, boolean removeFailedFiles)
-
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)KEConverter<V>getXMLConverter()-
Methods inherited from class edu.uiuc.ncsa.security.storage.FileStore
checkPermissions, clear, containsKey, containsValue, create, createIndexEntry, delete, doSetup, entrySet, get, getAll, getIndexDirectory, getIndexEntry, getItemFile, getItemFile, getMapConverter, getStorageDirectory, keySet, loadByIdentifier, loadFile, loadFromIndex, putAll, realRemove, realSave, register, register, remove, remove, removeByID, removeIndexEntry, save, save, search, search, search, search, setIndexDirectory, setStorageDirectory, size, size, toString, update, update, update, updateRS, values
-
Methods inherited from class edu.uiuc.ncsa.security.storage.IndexedStreamStore
createIndexEntry, getCreatedItems, hashString, isEmpty, loadStream, put, put
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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
-
-
-
-
Method Detail
-
getXMLConverter
public KEConverter<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.
-
-