KeyCache
- class scitokens.utils.keycache.KeyCache[source]
Bases:
objectObject that persistently caches signing keys associated with a token issuer endpoint.
Methods Summary
add_key(issuer, key_id[, force_refresh])Add a key or update an existing one in keycache
addkeyinfo(issuer, key_id, public_key[, ...])Add a single, known public key to the cache.
Return the singleton instance of the KeyCache.
getkeyinfo(issuer[, key_id, insecure, ...])Get the key information
List all keys in keycache
remove_key(issuer, key_id)Remove a specific key from keycache
update_all_keys([force_refresh])Update all keys in keycache If force_refresh is True, we refresh all keys regardless of update time
Methods Documentation
- add_key(issuer, key_id, force_refresh=False)[source]
Add a key or update an existing one in keycache
- addkeyinfo(issuer, key_id, public_key, cache_timer=0, next_update=0)[source]
Add a single, known public key to the cache.