Enum Class JWTClaims
- All Implemented Interfaces:
Serializable,Comparable<JWTClaims>,Constable
Enum that represents the standard set of registered JWT claims.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAudience(s) that this ID Token is intended for.Expiration time on or after which the ID Token MUST NOT be accepted for processing.Time at which the JWT was issued.Issuer Identifier for the Issuer of the response.The "jti" (JWT ID) claim provides a unique identifier for the JWT.The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.Subject Identifier. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Enum Constant Details
-
JWT_ID_CLAIM
The "jti" (JWT ID) claim provides a unique identifier for the JWT. -
ISSUER_CLAIM
Issuer Identifier for the Issuer of the response. -
SUBJECT_CLAIM
Subject Identifier. A locally unique and never reassigned identifier within the Issuer for the End-User. -
AUDIENCE_CLAIM
Audience(s) that this ID Token is intended for. -
EXPIRATION_TIME_CLAIM
Expiration time on or after which the ID Token MUST NOT be accepted for processing. -
ISSUED_AT_CLAIM
Time at which the JWT was issued. -
NOT_BEFORE_CLAIM
The "nbf" (not before) claim identifies the time before which the JWT MUST NOT be accepted for processing.
-
-
Field Details
-
claimName
The IANA registered claim name.
-
-
Constructor Details
-
JWTClaims
Constructor.- Parameters:
name- the IANA registered claim name.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getClaimName
Get the IANA registered claim name.- Returns:
- the IANA registered claim name.
-