Package web5.sdk.vc

Class VerifiablePresentation

    • Constructor Detail

    • Method Detail

      • getContext

         final List<String> getContext()

        A list of contexts used to define the semantic meaning of the data contained in the presentation.

      • getId

         final String getId()

        The unique identifier for the Verifiable Presentation.

      • getHolder

         final String getHolder()

        The entity holding and presenting the Verifiable Presentation, identified by a DID or other identifier.

      • getIssuanceDate

         final Date getIssuanceDate()

        The date and time when the presentation was issued.

      • getExpirationDate

         final Date getExpirationDate()

        The optional expiration date and time after which the presentation is no longer valid.

      • sign

         final String sign(BearerDid bearerDid, String verificationMethodId)

        Signs the Verifiable Presentation using the specified Bearer DID and optional verification method.

        Parameters:
        bearerDid - The DID used to sign the presentation.
        verificationMethodId - Optional identifier of the Verification Method to sign with.
        Returns:

        A string representing the signed JWT, serialized as a compact JWS, of the Verifiable Presentation.