public class Jwt extends SecurityToken implements JwtClaimAccessor
SecurityToken
representing a JSON Web Token (JWT).
JWTs represent a set of "Claims" as a JSON object that is 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/Claim Value pairs.
The Claim Name is a String
and the Claim Value is an arbitrary JSON object.
SecurityToken
,
JwtClaimAccessor
,
JSON Web Token (JWT),
JSON Web Signature (JWS),
JSON Web Encryption (JWE),
Serialized FormConstructor and Description |
---|
Jwt(java.lang.String tokenValue,
java.time.Instant issuedAt,
java.time.Instant expiresAt,
java.util.Map<java.lang.String,java.lang.Object> headers,
java.util.Map<java.lang.String,java.lang.Object> claims) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getClaims() |
java.util.Map<java.lang.String,java.lang.Object> |
getHeaders() |
equals, getExpiresAt, getIssuedAt, getTokenValue, hashCode
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAudience, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getSubject
containsClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL
public Jwt(java.lang.String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt, java.util.Map<java.lang.String,java.lang.Object> headers, java.util.Map<java.lang.String,java.lang.Object> claims)
public java.util.Map<java.lang.String,java.lang.Object> getHeaders()
public java.util.Map<java.lang.String,java.lang.Object> getClaims()
getClaims
in interface ClaimAccessor