JwtHeader
Immutable representation of a JOSE header for a JWT, JWS, or JWE token.
The header is backed by a JsonObject and is also stored in its base64url-encoded form so that the compact serialization can be reproduced exactly. Standard parameters such as alg, enc, typ, cty, and kid are accessible via dedicated properties or helper functions; arbitrary custom parameters can be read with getHeader and getHeaderOrNull.
See also
Types
Properties
Returns the cty (content type) header value.
Returns the cty (content type) header value, or null if the header is absent.
Returns the enc (encryption algorithm) header value.
Returns the enc (encryption algorithm) header value, or null if the header is absent.
Returns the kid (key ID) header value, or null if the header is absent.
Returns the typ (token type) header value, or null if the header is absent.
Functions
Returns the value of the named header parameter deserialized using the given serializer.
Returns the value of the named header parameter deserialized using the given serializer, or null if absent.