Package web5.sdk.vc
Object VerifiablePresentation.Companion
-
- All Implemented Interfaces:
public class VerifiablePresentation.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static VerifiablePresentation.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final VerifiablePresentationcreate(String holder, List<String> verifiableCredential, VerifiablePresentationCreateOptions options)Creates a new Verifiable Presentation with the specified holder, Verifiable Credential JWTs, and optional creation options. final VerifiablePresentationfromVpJwt(String vpJwt, Boolean verify)Constructs a Verifiable Presentation from a VP JWT (JSON Web Token). -
-
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.
-
-
-
-