StaticfromBuild a Directory from a parsed JSON object matching the published directory schema.
This method is defensive: if issuer.iss is missing or not a string it
will be coerced to an empty string; if keys or crls are not arrays
they will be treated as empty arrays.
The JSON object to convert into a Directory
A new Directory instance
StaticfromCreate a Directory by fetching issuer metadata (JWKS) and CRLs from the provided issuer base URLs.
For each issuer URL the method attempts to fetch /.well-known/jwks.json
and will then attempt to fetch CRLs for each key at
/.well-known/crl/{kid}.json. Failures to fetch a JWKS will skip that
issuer; failures to fetch a CRL for an individual key will skip that key's
CRL but keep the key. Errors are logged via console.debug and
unexpected exceptions are caught and logged with console.error.
Array of issuer base URLs to fetch (e.g. https://example.com/issuer)
A Directory containing any successfully fetched issuer info
Directory is a lightweight representation of issuer metadata used by SMART Health Cards code paths. It contains a collection of issuer info objects including the issuer identifier, known JWK keys and optionally Certificate Revocation Lists (CRLs).