Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract all complexity about the Verifiable Credentials handling by providing utility methods to access user verified data in a secure way unless the security behavior is explicit flexed.

By Default the only check not performed is the blockchain anchor check that must be explicit enable by providing a verification plugin that can handle the verification in a async way.

Hierarchy

  • VerifiablePresentationManager

Index

Constructors

constructor

Properties

artifacts

claims

claims: AvailableClaim[]

options

options: VPMOptions

presentations

presentations: PresentationReference[]

status

verifier

Methods

addCredentialArtifacts

Private aggregateCredentialArtifacts

findClaims

Private findEvidencePresentation

Private getAvailableClaims

Private getClaimPresentation

getClaimValue

  • return the STRING value of a valid avaliable claim. if allowGetUnverified is true it returns unverified values. if notThrow is true return null for known invalid claims

    Parameters

    Returns Promise<any | null>

Private getPresentation

Private getPresentationReference

Private getVerifiedPresentationRefs

isAllArtifactsVerified

  • isAllArtifactsVerified(): Promise<boolean>
  • Return true if all artifacts are verified, otherwise return false

    if neither skipGetVerify or notThrow are true, it throws an acception

    Returns Promise<boolean>

listClaims

  • List managed claim returning in accordance with the config

    if allowGetUnverified is true, claim that were not verified yet will be returned. but known invalid presentations are never returned

    Returns Promise<AvailableClaim[]>

listEvidences

listPresentationClaims

listPresentations

  • List managed presentations returning in accordance with the config

    if allowGetUnverified is true, presentations that were not verified yet will be returned. but known invalid presentations are never returned

    Returns Promise<PresentationReference[]>

mapClaimValues

  • Get a mapping from key to a claim search criteria and resolve the claim search criterias, returning a mapping from the same keys to the relative claim value. if allowGetUnverified is true, then the search also includes claims not verified yet. if no claim matches a claim criteria, the value for the relative key will be null.

    Parameters

    Returns Promise<ClaimValueMap>

purgeInvalidArtifacts

verifyAllArtifacts

Private verifyEvidence

Private verifyEvidences

Private verifyPresentation

Private verifyPresentations

  • verifyPresentations(notThrow?: boolean): Promise<Credential[]>

wasGrantedForDSR

  • Verify if a presentation was GRANTED for a specific DSR

    Verify if the presentation was shared with user consent and signatures

    Parameters

    • presentationRef: PresentationReference

      the managed presentation to verify

    • originalRequestDSR: DSRJSON

      the original Dynamic Scope Request that receive the presentation as result

    Returns any

Generated using TypeDoc