addTrustedVerifierCertificates
Add trusted verifier certificates to storage.
Add trusted verifier certificates to storage.
Verifier certificates are used to verify the authorization request object fetched from the request URI as part of an OID4VP mDoc retrieval flow, as per Annex B of ISO/IEC 18013-7:2024.
The function is idempotent, meaning repeated calls to add the same verifier certificates do not result in duplicates. Instead, it returns the IDs of existing certificates stored by the SDK.
Signature
function addTrustedVerifierCertificates(
certificates: readonly string[]
): Promise<Result<string[], AddTrustedVerifierCertificatesError>>Parameters
Prop
Type
Returns
Promise<Result<string[], AddTrustedVerifierCertificatesError>>
A list of IDs of successfully added certificates.
Throws
InvalidParams if the provided arguments are missing or invalid.
MobileCredentialHolderErrorType.SdkNotInitialized if the SDK has not been initialized.
How would you rate this page?