JwksCache

A TTL cache for a JWKS document, refetched on demand. Selects keys by kid; when a token's kid is unknown, every JWKS key is offered as a candidate.

Members

Functions

keysFor
string[] keysFor(string kid)

Candidate PEM keys for a kid. Triggers a (re)fetch when stale.

load
void load(string jwksJson)

Populate the cache from a raw JWKS document (also the test seam).