SimplePresentmentSource
An implementation of PresentmentSource for when using ISO mdoc and IETF SD-JWT VC credentials.
This implementation assumes that Credentials for a Document are organized by domain corresponding to the type of credential.
Constructors
Properties
the DocumentStore which holds credentials that can be presented.
a DocumentTypeRepository which holds metadata for document types.
the domains to use for KeyBoundSdJwtVcCredential instances, will be tried in order.
the domains to use for KeylessMdocCredential instances, will be tried in order.
the domains to use for KeylessSdJwtVcCredential instances, will be tried in order.
the domains to use for KeyBoundMdocCredential instances using mdoc MAC authentication, will be tried in order.
the domains to use for KeyBoundMdocCredential instances using mdoc ECDSA authentication, will be tried in order.
an EventLogger for logging events or null.
whether to use mdoc ECDSA authentication even if mdoc MAC authentication is possible (ISO mdoc only).
a RequesterHistory for tracking relying party interactions or null.
the ZkSystemRepository to use 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.