addTrustedVerifierCertificates

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

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.

Return

A list of IDs of successfully added certificates.

Parameters

certificates

A list of certificates in PEM-encoded string format OR as a Base64-encoded DER string.

Throws

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

If storing the certificate fails.