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 the OID4VP mdoc retrieval flow specified in Annex B of 18013-7. The function is idempotent, meaning repeated calls to add the same verifier certificates do not result in duplicates. Instead, the ids of the existing certificates stored by the SDK are returned.

Return

List of ids of successfully added certificates

Parameters

certificates

: list 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.

If storing the certificate fails.