Enum Class SignInPolicy.SecondFactor

java.lang.Object
java.lang.Enum<SignInPolicy.SecondFactor>
com.iizix.user.SignInPolicy.SecondFactor
All Implemented Interfaces:
Serializable, Comparable<SignInPolicy.SecondFactor>, Constable
Enclosing class:
SignInPolicy

public static enum SignInPolicy.SecondFactor extends Enum<SignInPolicy.SecondFactor>
What the policy says of the second factor.
Author:
Christopher Mindus
  • Enum Constant Details

    • OFF

      public static final SignInPolicy.SecondFactor OFF
      No second factor is asked, of nobody, and none can be enrolled.
    • OPTIONAL

      public static final SignInPolicy.SecondFactor OPTIONAL
      A second factor is asked of the users who enrolled one.
    • REQUIRED

      public static final SignInPolicy.SecondFactor REQUIRED
      Every user must have a second factor and pass it: "at least one more method".
  • Method Details

    • values

      public static SignInPolicy.SecondFactor[] 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

      public static SignInPolicy.SecondFactor valueOf(String name)
      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 name
      NullPointerException - if the argument is null