addTrustedIssuerCertificates
Add trusted issuer certificates to storage.
Add trusted issuer certificates to storage.
Issuer certificates are used to verify mDocs when they are added to storage. This function validates the issuer certificate as per the IACA profile defined in ISO/IEC 18013-5:2021, applying the additional constraint of requiring the certificate to be self-signed.
The function is idempotent, meaning repeated calls to add the same issuer certificates do not result in duplicates. Instead, it returns the IDs of existing certificates stored by the SDK.
Signature
function addTrustedIssuerCertificates(
certificates: readonly string[]
): Promise<Result<string[], AddTrustedIssuerCertificatesError>>Parameters
Prop
Type
Returns
Promise<Result<string[], AddTrustedIssuerCertificatesError>>
An array 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?