JsonWebKeySetLoader class abstract

Used for loading JSON Web Key sets from an url

The default loader will handle urls with data and http(s) schemes. Http requests will be cached.

The default behavior can be changed with runZoned. This can be useful for testing purposes or changing the caching behavior.

Example:

JsonWebKeySetLoader.runZoned(() async { var key = await set.findJsonWebKeys(header, operation).first; }, loader: DefaultJsonWebKeySetLoader(httpClient: MockClient()));

Implementers

Constructors

JsonWebKeySetLoader()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(Uri uri) Future<JsonWebKeySet>
readAsString(Uri uri) Future<String>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

current JsonWebKeySetLoader
no setter
global JsonWebKeySetLoader
no getter

Static Methods

runZoned<T>(T body(), {JsonWebKeySetLoader? loader}) → T