public enum TokenStatus extends java.lang.Enum<TokenStatus>
| Enum Constant and Description |
|---|
ACTIVATION_EXPIRED
The token has exceeded the activation deadline
|
ACTIVE
The token is active and can be used.
|
BLOCKED
The token is blocked from being used.
|
CANCELED
The token is canceled and cannot be used.
|
EXPIRED
The token has exceeded the expiration date
|
PENDING_ACTIVATION
The token has been assigned to an user, but it's still not active.
|
UNASSIGNED
The token is not assigned to an user
|
| Modifier and Type | Method and Description |
|---|---|
static TokenStatus |
valueOf(java.lang.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.
|
public static final TokenStatus UNASSIGNED
public static final TokenStatus PENDING_ACTIVATION
public static final TokenStatus ACTIVE
public static final TokenStatus BLOCKED
public static final TokenStatus CANCELED
public static final TokenStatus ACTIVATION_EXPIRED
public static final TokenStatus EXPIRED
public static TokenStatus[] values()
for (TokenStatus c : TokenStatus.values()) System.out.println(c);
public static TokenStatus valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null