Class: JptPresentationValidator
identity_wasm.JptPresentationValidator
Table of contents
Methods
Methods
validate
▸ Static
validate(presentation_jpt
, issuer
, options
, fail_fast
): DecodedJptPresentation
Decodes and validates a Presented Credential issued as a JPT (JWP Presented Form). A DecodedJptPresentation is returned upon success.
The following properties are validated according to options
:
- the holder's proof on the JWP,
- the expiration date,
- the issuance date,
- the semantic structure.
Parameters
Name | Type |
---|---|
presentation_jpt | Jpt |
issuer | IToCoreDocument | CoreDocument |
options | JptPresentationValidationOptions |
fail_fast | FailFast |