Package com.authlete.common.types
Enum TokenStatus
- java.lang.Object
-
- java.lang.Enum<TokenStatus>
-
- com.authlete.common.types.TokenStatus
-
- All Implemented Interfaces:
Serializable
,Comparable<TokenStatus>
public enum TokenStatus extends Enum<TokenStatus>
Token status.- Since:
- 3.97
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TokenStatus
valueOf(String name)
Returns the enum constant of this type with the specified name.static TokenStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALID
public static final TokenStatus VALID
All valid tokens.
-
INVALID
public static final TokenStatus INVALID
All invalid (expired) tokens.
-
ALL
public static final TokenStatus ALL
All tokens.
-
-
Method Detail
-
values
public static TokenStatus[] 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 (TokenStatus c : TokenStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenStatus 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
-
-