Package de.adorsys.psd2.model
Enum ChallengeData.OtpFormatEnum
- java.lang.Object
-
- java.lang.Enum<ChallengeData.OtpFormatEnum>
-
- de.adorsys.psd2.model.ChallengeData.OtpFormatEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ChallengeData.OtpFormatEnum>
- Enclosing class:
- ChallengeData
public static enum ChallengeData.OtpFormatEnum extends Enum<ChallengeData.OtpFormatEnum>
The format type of the OTP to be typed in. The admitted values are \"characters\" or \"integer\".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHARACTERSINTEGER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ChallengeData.OtpFormatEnumfromValue(String text)StringtoString()static ChallengeData.OtpFormatEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ChallengeData.OtpFormatEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHARACTERS
public static final ChallengeData.OtpFormatEnum CHARACTERS
-
INTEGER
public static final ChallengeData.OtpFormatEnum INTEGER
-
-
Method Detail
-
values
public static ChallengeData.OtpFormatEnum[] 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 (ChallengeData.OtpFormatEnum c : ChallengeData.OtpFormatEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChallengeData.OtpFormatEnum 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
-
toString
public String toString()
- Overrides:
toStringin classEnum<ChallengeData.OtpFormatEnum>
-
fromValue
public static ChallengeData.OtpFormatEnum fromValue(String text)
-
-