Enum Class UserKey
- All Implemented Interfaces:
Serializable
,Comparable<UserKey>
,Constable
Enumerates the user keys. This is used in conjunction with the
PrivateClaim.USER_KEY
and represents all valid
values for that claim.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe user email.Deprecated.no longer in use.The user's name. -
Method Summary
Modifier and TypeMethodDescriptionfindByValue
(String value) Finds theUserKey
by the specified value.getValue()
The literal value of the claim.static UserKey
Returns the enum constant of this class with the specified name.static UserKey[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAME
The user's name. Maps toUser.getName()
. -
EMAIL
The user email. Maps toUser.getEmail()
. -
EXTERNAL_USER_ID
Deprecated.no longer in use.The user's external user id.
-
-
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
-
getValue
The literal value of the claim.- Returns:
- the value
-
findByValue
Finds theUserKey
by the specified value.- Parameters:
value
- the value- Returns:
- the value
-