addTrustedIssuerCertificates
Add trusted issuer certificates to storage.
Issuer certificates are used to verify mobile credentials when added to storage. This function validates the certificate in accordance with 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 the existing certificates stored by the SDK.
Return
A list of IDs of successfully added certificates.
Parameters
certificates
A list of certificates in PEM-encoded string format OR a Base64-encoded DER string.
Throws
If the SDK API is called before the SDK is initialized.
If storing the certificate fails.