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.
Candidate PEM keys for a kid. Triggers a (re)fetch when stale.
Populate the cache from a raw JWKS document (also the test seam).
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.