VerifierAgent

class VerifierAgent(identifier: String, validator: Validator = Validator(), validatorVcJws: ValidatorVcJws = ValidatorVcJws(validator = validator), validatorSdJwt: ValidatorSdJwt = ValidatorSdJwt(validator = validator), validatorMdoc: ValidatorMdoc = ValidatorMdoc(validator = validator)) : 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, validator: Validator = Validator(), validatorVcJws: ValidatorVcJws = ValidatorVcJws(validator = validator), validatorSdJwt: ValidatorSdJwt = ValidatorSdJwt(validator = validator), validatorMdoc: ValidatorMdoc = ValidatorMdoc(validator = validator))

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

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).

open suspend override fun verifyPresentationIsoMdoc(input: DeviceResponse, challenge: String, verifyDocument: suspend (MobileSecurityObject, Document) -> Boolean): Verifier.VerifyPresentationResult

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

Link copied to clipboard

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: JwsSigned<VerifiablePresentationJws>, challenge: String): Verifier.VerifyPresentationResult

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