PresentmentSource
The source of truth used for credential presentment.
This is used whenever an application wishes to present credentials including the DocumentStore which holds credentials that can be presented and a DocumentTypeRepository which contains descriptions of well-known document types which may be shown in a consent prompt.
It's also used for more dynamic data such as determining whether the requester is trusted (via resolveTrust) and if so what branding to show, whether user consent should be obtained or if preconsent exists (via showConsentPrompt), and even what kind of user authentication to perform to present the credential, if any (by picking a Credential from an appropriate domain in selectCredential).
See also
for one concrete implementation tailored for ISO mdoc and IETF SD-JWT VC credentials.
Inheritors
Constructors
Properties
the DocumentStore which holds credentials that can be presented.
a DocumentTypeRepository which holds metadata for document types.
an EventLogger for logging events or null.
a RequesterHistory for tracking relying party interactions or null.
a ZkSystemRepository with ZKP systems or null.
Functions
Gets a list of badges for a document.
Gets the FaceMatcher to use for face matching during presentment, or null if face matching is not available.
Determines whether and when to perform face matching for a credential presentation.
Determines if a request comes from a trusted requestor and returns the information about the requestor.
Chooses a credential from a document.
A function to show a consent prompt.
Returns a PresentmentSource that delegates all operations to this instance except showConsentPrompt, which is handled by showConsentPromptFn.