TrustedIssuers

The issuers a verifier app accepts: credentials signed by anyone else are rejected.

Give either the signed issuer list your trust provider publishes (an ISO 18013-5 VICAL), or the issuers' root certificates (PEM).

TrustedIssuers(signedList = vicalBytes)
TrustedIssuers(rootCertificatesPem = listOf(issuerRootPem))

Constructors

Link copied to clipboard
constructor(signedList: ByteArray)

Trust every issuer on a signed issuer list (ISO 18013-5 VICAL).

constructor(signedList: ByteArray, displayNames: List<IssuerDisplayName>)

Trust every issuer on a signed issuer list, with the name to show for an issuer ("Issued by Example Licensing Authority") when a credential does not disclose its issuer itself (e.g. an age-only check).

constructor(rootCertificatesPem: List<String>)

Trust the issuers with these root certificates (PEM).

constructor(rootCertificatesPem: List<String>, displayNames: List<IssuerDisplayName>)

Trust the issuers with these root certificates (PEM), with the name to show for each ("Issued by Example Licensing Authority") when a credential does not disclose its issuer itself.