VerifierAgent

class VerifierAgent(identifier: String, validatorVcJws: ValidatorVcJws = ValidatorVcJws(), validatorSdJwt: ValidatorSdJwt = ValidatorSdJwt(), validatorMdoc: ValidatorMdoc = ValidatorMdoc()) : Verifier(source)

An agent that only implements Verifier, i.e. it can only verify credentials of other agents.

Constructors

Link copied to clipboard
constructor(identifier: String, validatorVcJws: ValidatorVcJws = ValidatorVcJws(), validatorSdJwt: ValidatorSdJwt = ValidatorSdJwt(), validatorMdoc: ValidatorMdoc = ValidatorMdoc())

Functions

Link copied to clipboard
open suspend override fun verifyPresentationIsoMdoc(input: DeviceResponse, verifyDocument: suspend (MobileSecurityObject, Document) -> Boolean): KmmResult<Verifier.VerifyPresentationResult.SuccessIso>

Verifies a presentation of some credentials in ConstantIndex.CredentialRepresentation.ISO_MDOC from a holder, with a challenge validated by the callback in verifyDocument (i.e. device authentication for OpenID4VP).

Link copied to clipboard
open suspend override fun verifyPresentationSdJwt(input: SdJwtSigned, challenge: String, transactionData: List<TransactionDataBase64Url>? = null, requireCryptographicHolderBinding: Boolean = true): KmmResult<Verifier.VerifyPresentationResult.SuccessSdJwt>

Verifies a presentation of some credentials in ConstantIndex.CredentialRepresentation.SD_JWT from a holder, that shall include the challenge (sent by this verifier).

Link copied to clipboard
open suspend override fun verifyPresentationVcJwt(input: JwsCompactTyped<VerifiablePresentationJws>, challenge: String): KmmResult<Verifier.VerifyPresentationResult.Success>

Verifies a presentation of some credentials in ConstantIndex.CredentialRepresentation.PLAIN_JWT from a holder, that shall include the challenge (sent by this verifier).

Link copied to clipboard