Package web5.sdk.jose.jws
Class DecodedJws
-
- All Implemented Interfaces:
public final class DecodedJwsDecodedJws is a compact JWS decoded into its parts.
-
-
Method Summary
Modifier and Type Method Description final JwsHeadergetHeader()The JWS header final ByteArraygetPayload()The JWS payload final ByteArraygetSignature()The JWS signature final List<String>getParts()All parts that make up JWS. final StringgetSignerDid()final Unitverify()Verify the JWS signature is valid. -
-
Method Detail
-
getPayload
final ByteArray getPayload()
The JWS payload
-
getSignature
final ByteArray getSignature()
The JWS signature
-
getParts
final List<String> getParts()
All parts that make up JWS. Each part is a base64url encoded string
-
getSignerDid
final String getSignerDid()
-
verify
final Unit verify()
Verify the JWS signature is valid.
Ensures the presence of critical header elements
algandkidin 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
kidparameter.Verifies the JWT's signature using the public key associated with the Verification Method.
-
-
-
-