public enum OtpPurpose extends java.lang.Enum<OtpPurpose>
| Enum Constant and Description |
|---|
REGISTER_ACCOUNT
Register account
|
RESET_PASSWORD
Reset a password
|
UPDATE_PHONE
Update phone number
|
VERIFY_EMAIL
Verify an email address
|
VERIFY_PHONE
Verify a mobile phone number
|
VERIFY_VEHICLE
Verify a vehicle
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString()
Returns a String of the OTP purpose.
|
static OtpPurpose |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OtpPurpose[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OtpPurpose VERIFY_PHONE
public static final OtpPurpose VERIFY_EMAIL
public static final OtpPurpose VERIFY_VEHICLE
public static final OtpPurpose RESET_PASSWORD
public static final OtpPurpose REGISTER_ACCOUNT
public static final OtpPurpose UPDATE_PHONE
public static OtpPurpose[] values()
for (OtpPurpose c : OtpPurpose.values()) System.out.println(c);
public static OtpPurpose 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 java.lang.String toString()
toString in class java.lang.Enum<OtpPurpose>