Enum Class JwtType
- All Implemented Interfaces:
Serializable, Comparable<JwtType>, Constable
A supported JWT protected-header
typ value used when signing a token.
The token type describes its intended use; it is separate from the claims and signing algorithm.
This enum is not switch-stable: a later release may add constants, so a switch over it needs a default
branch.
- Since:
- 1.0.0
- Author:
- Mark Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA JWT access token (at+jwt).A JWT client authentication assertion (client-authentication+jwt).A general-purpose JWT (JWT). -
Method Summary
Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
JWT
-
ACCESS_TOKEN
A JWT access token (at+jwt). -
CLIENT_AUTHENTICATION
A JWT client authentication assertion (client-authentication+jwt).
-
-
Method Details
-
values
-
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
-
getWireValue
Returns this type's exact protected-headertypvalue.- Returns:
- the wire value
- Since:
- 1.0.0
-