JwtPayload
Immutable representation of a JWT payload (claims set) as defined in RFC 7519.
The payload is backed by a JsonObject and also stored in its base64url-encoded form so that the compact serialization can be reproduced exactly. Registered claim names (e.g. iss, sub, aud, exp) are accessible through named properties on Builder; arbitrary custom claims can be read with getClaim and getClaimOrNull.
See also
Types
Builder for constructing a JwtPayload with standard and custom claims.
Properties
Returns the aud (audience) claim value as a set of strings.
Returns the aud (audience) claim value as a set of strings, or null if the claim is absent.
Returns the exp (expiration time) claim value as an Instant.
Returns the exp (expiration time) claim value as an Instant, or null if the claim is absent.
Returns the iat (issued at) claim value as an Instant.
Returns the iat (issued at) claim value as an Instant, or null if the claim is absent.
Returns the iss (issuer) claim value.
Returns the iss (issuer) claim value, or null if the claim is absent.
Returns the jti (JWT ID) claim value.
Returns the jti (JWT ID) claim value, or null if the claim is absent.
Returns the nbf (not before) claim value as an Instant.
Returns the nbf (not before) claim value as an Instant, or null if the claim is absent.
Returns the sub (subject) claim value.
Returns the sub (subject) claim value, or null if the claim is absent.
Functions
Returns the value of the named claim, deserialized using the given serializer.
Returns the value of the named claim deserialized using the given serializer, or null if absent.
Returns the value of the named claim deserialized to type T, or null if the claim is absent.