Enum IDTokenClaims
- java.lang.Object
-
- java.lang.Enum<IDTokenClaims>
-
- net.shibboleth.oidc.security.jwt.claims.impl.IDTokenClaims
-
- All Implemented Interfaces:
Serializable,Comparable<IDTokenClaims>
public enum IDTokenClaims extends Enum<IDTokenClaims>
Enum of those OIDC ID token claims that are not part of the standardJWT claims set.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTHENTICATION_CONTEXT_CLASS_REFERENCEAuthentication Context Class Reference.AUTHENTICATION_METHODS_REFERENCESAuthentication Methods References.AUTHENTICATION_TIMETime when the End-User authentication occurred.AUTHORIZED_PARTYAuthorized party - the party to which the ID Token was issued.NONCEString value used to associate a Client session with an ID Token, and to mitigate replay attacks.
-
Constructor Summary
Constructors Modifier Constructor Description privateIDTokenClaims(String name)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClaimName()Get the registered claim name.static IDTokenClaimsvalueOf(String name)Returns the enum constant of this type with the specified name.static IDTokenClaims[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTHENTICATION_TIME
public static final IDTokenClaims AUTHENTICATION_TIME
Time when the End-User authentication occurred.
-
NONCE
public static final IDTokenClaims NONCE
String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
-
AUTHENTICATION_CONTEXT_CLASS_REFERENCE
public static final IDTokenClaims AUTHENTICATION_CONTEXT_CLASS_REFERENCE
Authentication Context Class Reference.
-
AUTHENTICATION_METHODS_REFERENCES
public static final IDTokenClaims AUTHENTICATION_METHODS_REFERENCES
Authentication Methods References.
-
AUTHORIZED_PARTY
public static final IDTokenClaims AUTHORIZED_PARTY
Authorized party - the party to which the ID Token was issued.
-
-
Method Detail
-
values
public static IDTokenClaims[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (IDTokenClaims c : IDTokenClaims.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IDTokenClaims valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getClaimName
@Nonnull public String getClaimName()
Get the registered claim name.- Returns:
- the registered claim name.
-
-