addTrustedIssuerCertificates

@Blocking
fun addTrustedIssuerCertificates(certificates: List<String>): List<String>

Add a trusted issuer certificate to storage.

Issuer certificates are used to verify mobile credentials when added to the storage. This function validates the certificate in accordance with the IACA profile defined in 18013-5 with 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. The identifiers of existing certificates as stored by the SDK are returned instead.

Return

An array of ids of successfully added certificates

Parameters

certificates

An array of certificates in pem encoded string format OR as DER encoded as base64

Throws

If the SDK API is called before the SDK is initialised.