Interface IJwksStore
Represent a store for JSON Web Keys from a specific service or APIs JWKS endpoint
public interface IJwksStore
Methods
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
keyIdstringIdentifier 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; otherwisefalse) and the key if found