public enum JwtClaimsSetKey extends Enum<JwtClaimsSetKey>
As described in the JWT specification, this Enum class represents all the reserved JWT Claim Names, any other Claim name is deemed as a "custom" Claim name.
Enum Constant and Description |
---|
AUD
Audience Claim.
|
CUSTOM
Custom (private) Claim.
|
EXP
Expiration Time Claim.
|
IAT
Issued At Claim.
|
ISS
Issuer Claim.
|
JTI
JWT ID Claim.
|
NBF
Not Before Claim.
|
SUB
Subject Claim.
|
TYP
Type Claim.
|
Modifier and Type | Method and Description |
---|---|
static JwtClaimsSetKey |
getClaimSetKey(String claimSetKey)
Gets the
JwtClaimsSetKey constant that matches the given String (case-insensitive). |
String |
toString()
Turns the
JwtClaimsSetKey constant into a lowercase String . |
String |
value()
Returns a lowercase String of the
JwtClaimsSetKey constant. |
static JwtClaimsSetKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JwtClaimsSetKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JwtClaimsSetKey TYP
Used to declare a type for the contents of this JWT Claims Set.
The values used for the "typ" claim SHOULD come from the same value space as the "typ" header parameter, with the same rules applying.
public static final JwtClaimsSetKey JTI
Provides a unique identifier for the JWT.
public static final JwtClaimsSetKey ISS
Identifies the principal that issued the JWT.
public static final JwtClaimsSetKey SUB
Identifies the subject of the JWT.
public static final JwtClaimsSetKey AUD
Identifies the audience that the JWT is intended for.
public static final JwtClaimsSetKey IAT
Identifies the time at which the JWT was issued. This claim can be used to determine the age of the token.
public static final JwtClaimsSetKey NBF
Identifies the time before which the token MUST NOT be accepted for processing.
public static final JwtClaimsSetKey EXP
Identifies the expiration time on or after which the token MUST NOT be accepted for processing.
public static final JwtClaimsSetKey CUSTOM
Represents any claim not registered in the JWT spec.
public static JwtClaimsSetKey[] values()
for (JwtClaimsSetKey c : JwtClaimsSetKey.values()) System.out.println(c);
public static JwtClaimsSetKey valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
JwtClaimsSetKey
constant.JwtClaimsSetKey.toString()
public static JwtClaimsSetKey getClaimSetKey(String claimSetKey)
JwtClaimsSetKey
constant that matches the given String
(case-insensitive).claimSetKey
- The case-insensitive String
representation of a JwtClaimsSetKey
.JwtClaimsSetKey
or JwtClaimsSetKey.CUSTOM
for keys not in the JWT spec.public String toString()
JwtClaimsSetKey
constant into a lowercase String
.toString
in class Enum<JwtClaimsSetKey>
Copyright © 2010-2018, ForgeRock All Rights Reserved.