Package web5.sdk.vc

Object VerifiablePresentation.Companion

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • create

         final VerifiablePresentation create(String holder, List<String> verifiableCredential, VerifiablePresentationCreateOptions options)

        Creates a new Verifiable Presentation with the specified holder, Verifiable Credential JWTs, and optional creation options.

        Parameters:
        holder - The entity holding and presenting the Verifiable Presentation.
        verifiableCredential - A list of Verifiable Credential JWTs to include in the presentation.
        options - Optional parameters for creating the presentation, such as context or expiration.
        Returns:

        The newly created Verifiable Presentation.

      • fromVpJwt

         final VerifiablePresentation fromVpJwt(String vpJwt, Boolean verify)

        Constructs a Verifiable Presentation from a VP JWT (JSON Web Token).

        Parameters:
        vpJwt - The Verifiable Presentation in JWT format, serialized as a compact JWS.
        verify - If true, verifies the integrity of the JWT by performing cryptographic verification against the signature and validating the Data Model.
        Returns:

        The deserialized and validated Verifiable Presentation.