Package org.eclipse.microprofile.jwt
Enum Class Claims
- All Implemented Interfaces:
Serializable
,Comparable<Claims>
,Constable
This enum represents the standardized claims that the MP-JWT specification allows for in terms of interoperability.
For every claim in this enum, an MP-JWT implementation must return a value of the indicated type from
JsonWebToken.getClaim(String)
method. An implementation is free to include any additional claims, and users
of JsonWebToken.getClaim(String)
can expect that the JSON-P corresponding Java type is seen based on the JSON
type of the claim.
The set of included claims is defined by IANA, see https://www.iana.org/assignments/jwt/jwt.xhtml-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Method Summary
-
Enum Constant Details
-
iss
-
sub
-
exp
-
iat
-
jti
-
upn
-
groups
-
raw_token
-
aud
-
nbf
-
auth_time
-
updated_at
-
azp
-
nonce
-
at_hash
-
c_hash
-
full_name
-
family_name
-
middle_name
-
nickname
-
given_name
-
preferred_username
-
email
-
email_verified
-
gender
-
birthdate
-
zoneinfo
-
locale
-
phone_number
-
phone_number_verified
-
address
-
acr
-
amr
-
sub_jwk
-
cnf
-
sip_from_tag
-
sip_date
-
sip_callid
-
sip_cseq_num
-
sip_via_branch
-
orig
-
dest
-
mky
-
jwk
-
jwe
-
kid
-
jku
-
UNKNOWN
-
-
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
-
getDescription
- Returns:
- A description for the claim
-
getType
The required type of the claim- Returns:
- type of the claim
-