All Implemented Interfaces:
Serializable, ClaimAccessor, OAuth2Token, JwtClaimAccessor

public class Jwt extends AbstractOAuth2Token implements JwtClaimAccessor
An implementation of an AbstractOAuth2Token representing a JSON Web Token (JWT).

JWTs represent a set of "claims" as a JSON object that may be encoded in a JSON Web Signature (JWS) and/or JSON Web Encryption (JWE) structure. The JSON object, also known as the JWT Claims Set, consists of one or more claim name/value pairs. The claim name is a String and the claim value is an arbitrary JSON object.

See Also:
  • Constructor Details

    • Jwt

      public Jwt(String tokenValue, Instant issuedAt, Instant expiresAt, Map<String,Object> headers, Map<String,Object> claims)
      Constructs a Jwt using the provided parameters.
      tokenValue - the token value
      issuedAt - the time at which the JWT was issued
      expiresAt - the expiration time on or after which the JWT MUST NOT be accepted
      headers - the JOSE header(s)
      claims - the JWT Claims Set
  • Method Details