the values of the headers to be set
the values of the claims to be set
Returns an encoded representation of the decoded jwt, signed with a signature generated with the secret provided.
Returns an encoded representation of the decoded jwt, signed with a signature generated with the secret provided.
the secret to use when signing the jwt
an encoded representation of the decoded jwt
Attempts to return a ClaimValue of the provided type.
Attempts to return a ClaimValue of the provided type.
the type of a potential claim
returns None if no claim found, otherwise a claim of the same type as requested wrapped in Some
Attempts to return a HeaderValue of the provided type.
Attempts to return a HeaderValue of the provided type.
the type of a potential header
returns None if no header found, otherwise a header of the same type as requested wrapped in Some
A class representing a decoded jwt.
When an Alg value is omitted it defaults to none. Where multiple headers or claims with the same field name are provided, the last occurrence is used.