import { MdsCollection } from "https://deno.land/x/fido2@3.3.5/lib/main.js";
Validates and stores the Table of Contents (TOC) for future reference. This method validates
the TOC JSON Web Token (JWT) signature, as well as the certificate chain. The certiciate chain
is validated using the rootCert
and crls
that are provided.
Parameters
The base64url encoded Table of Contents, as described in the [FIDO Metadata Service specification]https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-metadata-service-v2.0-id-20180227.html
One or more root certificates that serve as a trust anchor for the Metadata Service.
Certificate format is flexible, and can be a PEM string, a base64 encoded string, or an ArrayBuffer, provieded that each of those formats can be decoded to valid ASN.1
If the rootCert
is undefined
, then the default FIDO MDS root certificate will be used.