public enum Claims extends java.lang.Enum<Claims>
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.xhtmlEnum Constant and Description |
---|
acr |
address |
amr |
at_hash |
aud |
auth_time |
azp |
birthdate |
c_hash |
cnf |
dest |
email |
email_verified |
exp |
family_name |
full_name |
gender |
given_name |
groups |
iat |
iss |
jku |
jti |
jwe |
jwk |
kid |
locale |
middle_name |
mky |
nbf |
nickname |
nonce |
orig |
phone_number |
phone_number_verified |
preferred_username |
raw_token |
sip_callid |
sip_cseq_num |
sip_date |
sip_from_tag |
sip_via_branch |
sub |
sub_jwk |
UNKNOWN |
updated_at |
upn |
zoneinfo |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription() |
java.lang.Class<?> |
getType()
The required type of the claim
|
static Claims |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Claims[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Claims iss
public static final Claims sub
public static final Claims exp
public static final Claims iat
public static final Claims jti
public static final Claims upn
public static final Claims groups
public static final Claims raw_token
public static final Claims aud
public static final Claims nbf
public static final Claims auth_time
public static final Claims updated_at
public static final Claims azp
public static final Claims nonce
public static final Claims at_hash
public static final Claims c_hash
public static final Claims full_name
public static final Claims family_name
public static final Claims middle_name
public static final Claims nickname
public static final Claims given_name
public static final Claims preferred_username
public static final Claims email
public static final Claims email_verified
public static final Claims gender
public static final Claims birthdate
public static final Claims zoneinfo
public static final Claims locale
public static final Claims phone_number
public static final Claims phone_number_verified
public static final Claims address
public static final Claims acr
public static final Claims amr
public static final Claims sub_jwk
public static final Claims cnf
public static final Claims sip_from_tag
public static final Claims sip_date
public static final Claims sip_callid
public static final Claims sip_cseq_num
public static final Claims sip_via_branch
public static final Claims orig
public static final Claims dest
public static final Claims mky
public static final Claims jwk
public static final Claims jwe
public static final Claims kid
public static final Claims jku
public static final Claims UNKNOWN
public static Claims[] values()
for (Claims c : Claims.values()) System.out.println(c);
public static Claims valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDescription()
public java.lang.Class<?> getType()