Enum Class SignInPolicy.SecondFactor
- All Implemented Interfaces:
Serializable, Comparable<SignInPolicy.SecondFactor>, Constable
- Enclosing class:
SignInPolicy
What the policy says of the second factor.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsMethod Summary
Modifier and TypeMethodDescriptionstatic SignInPolicy.SecondFactorReturns the enum constant of this class with the specified name.static SignInPolicy.SecondFactor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
OFF
No second factor is asked, of nobody, and none can be enrolled.OPTIONAL
A second factor is asked of the users who enrolled one.REQUIRED
Every user must have a second factor and pass it: "at least one more method".
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null