Class DecodedJws

  • All Implemented Interfaces:

    
    public final class DecodedJws
    
                        

    DecodedJws is a compact JWS decoded into its parts.

    • Method Detail

      • getParts

         final List<String> getParts()

        All parts that make up JWS. Each part is a base64url encoded string

      • verify

         final Unit verify()

        Verify the JWS signature is valid.

        • Ensures the presence of critical header elements alg and kid in the JWT header.

        • Resolves the Decentralized Identifier (DID) and retrieves the associated DID Document.

        • Validates the DID and establishes a set of valid verification method IDs.

        • Identifies the correct Verification Method from the DID Document based on the kid parameter.

        • Verifies the JWT's signature using the public key associated with the Verification Method.