Class SdJwt


  • public class SdJwt
    extends Object
    Main entry class for selective disclosure jwt (SD-JWT).
    Author:
    Francis Pouatcha
    • Method Detail

      • asNestedPayload

        public com.fasterxml.jackson.databind.JsonNode asNestedPayload()
        Prepare to a nested payload to this SD-JWT.

        dropping the algo claim.

      • toSdJwtString

        public String toSdJwtString()
      • getDisclosures

        public List<String> getDisclosures()
      • verify

        public void verify​(IssuerSignedJwtVerificationOpts verificationOpts)
                    throws SdJwtVerificationException
        Verifies SD-JWT as to whether the Issuer-signed JWT's signature and disclosures are valid.
        Parameters:
        verificationOpts - Options to parametize the Issuer-Signed JWT verification. A verifier must be specified for validating the Issuer-signed JWT. The caller is responsible for establishing trust in that associated public keys belong to the intended issuer.
        Throws:
        SdJwtVerificationException - if verification failed