Package de.kosmos_lab.web.server
Enum JWT.Algorithm
- java.lang.Object
-
- java.lang.Enum<JWT.Algorithm>
-
- de.kosmos_lab.web.server.JWT.Algorithm
-
- All Implemented Interfaces:
Serializable,Comparable<JWT.Algorithm>
- Enclosing class:
- JWT
public static enum JWT.Algorithm extends Enum<JWT.Algorithm>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JWT.AlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static JWT.Algorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final JWT.Algorithm NONE
-
HS256
public static final JWT.Algorithm HS256
-
-
Method Detail
-
values
public static JWT.Algorithm[] 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 (JWT.Algorithm c : JWT.Algorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JWT.Algorithm 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
-
-