public enum CodeVerificationStatus extends java.lang.Enum<CodeVerificationStatus>
| Enum Constant and Description |
|---|
CODE_NOT_SEND
There isn't a current code to be verified (for example the was never sent or the code was reset by max attempts
reached)
|
EXPIRED
The code has expired and can't be used anymore.
|
FAILED
The code was wrong (it doesn't match the expected value)
|
MAX_ATTEMPTS_REACHED
The max attempts with an invalid code was reached.
|
SUCCESS
The code was correct and accepted.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSuccess() |
static CodeVerificationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CodeVerificationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CodeVerificationStatus SUCCESS
public static final CodeVerificationStatus FAILED
public static final CodeVerificationStatus CODE_NOT_SEND
public static final CodeVerificationStatus EXPIRED
public static final CodeVerificationStatus MAX_ATTEMPTS_REACHED
public static CodeVerificationStatus[] values()
for (CodeVerificationStatus c : CodeVerificationStatus.values()) System.out.println(c);
public static CodeVerificationStatus 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 nullpublic boolean isSuccess()