Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fido2/lib/main.js>MdsEntry

A node.js library for performing FIDO 2.0 / WebAuthn server functionality
Go to Latest
class MdsEntry
Re-export
import { MdsEntry } from "https://deno.land/x/fido2@3.3.5/lib/main.js";

Holds a single MDS entry that provides the metadata for an authenticator. Contains both the TOC data (such as statusReports and url) as well as all the metadata statment data. All the metadata has been converted from the integers found in the FIDORegistry and FIDO UAF Registry have been converted to more friendly values. The following values are converted:

  • attachmentHint - converted to Array of Strings
  • attestationTypes - converted to Array of Strings
  • authenticationAlgorithm - converted to String
  • keyProtection - converted to Array of Strings
  • matcherProtection - converted to Array of Strings
  • publicKeyAlgAndEncoding - converted to String
  • tcDisplay - converted to Array of Strings
  • userVerificationDetails - converted to Array of Array of UserVerificationDesc

See the [FIDO Metadata Specification]https://fidoalliance.org/specs/fido-v2.0-id-20180227/fido-metadata-statement-v2.0-id-20180227.html for a description of each of the properties of this class.

Constructors

new
MdsEntry(mdsEntry, tocEntry)

Creates a new MDS entry. It is assumed that the entry has already been validated. The typical way of creating new MdsEntry objects is via the MdsCollection#addEntry and MdsCollection#validate methods, which will take care of parsing and validing the MDS entry for you.