Interface IJwksStore
Represent a store for JSON Web Keys from a specific service or APIs JWKS endpoint
public interface IJwksStoreMethods
LoadAsync()
Load the public keys from storage
Task<IEnumerable<JsonWebKey>> LoadAsync()Returns
SaveAsync(IEnumerable<JsonWebKey>)
Save the public keys to storage
Task SaveAsync(IEnumerable<JsonWebKey> keys)Parameters
- keysIEnumerable<JsonWebKey>
Returns
TryGetJsonWebKeyAsync(string)
Attempt to read the JSON Web Key identified by the specified key id
Task<(bool found, JsonWebKey? jsonWebKey)> TryGetJsonWebKeyAsync(string keyId)Parameters
- keyIdstring
- Identifier of the key to retrieve (typically from the header of a JWT. 
Returns
- Task<(bool found, JsonWebKey jsonWebKey)>
- A tuple with a - boolindicating success or failure (- trueif the key is found; otherwise- false) and the key if found