Enum Class UserMFA.Outcome

java.lang.Object
java.lang.Enum<UserMFA.Outcome>
com.iizix.server.user.mfa.UserMFA.Outcome
All Implemented Interfaces:
Serializable, Comparable<UserMFA.Outcome>, Constable
Enclosing class:
UserMFA

public static enum UserMFA.Outcome extends Enum<UserMFA.Outcome>
What became of a request.
Author:
Christopher Mindus
  • Enum Constant Details

    • ACCEPTED

      public static final UserMFA.Outcome ACCEPTED
      The code was accepted, or the request was done.
    • INVALID

      public static final UserMFA.Outcome INVALID
      The code is not valid.
    • REPLAYED

      public static final UserMFA.Outcome REPLAYED
      The code is valid and was accepted before: its time step, or a later one.
    • HELD_BACK

      public static final UserMFA.Outcome HELD_BACK
      The account waits after invalid codes; the code was not looked at.
    • NOT_ENROLLED

      public static final UserMFA.Outcome NOT_ENROLLED
      The account has no second factor, or no enrolment is waiting.
    • ALREADY_ENROLLED

      public static final UserMFA.Outcome ALREADY_ENROLLED
      The account has a second factor already.
    • NO_PENDING

      public static final UserMFA.Outcome NO_PENDING
      No sign-in of the session is waiting for a code.
    • NO_METHOD

      public static final UserMFA.Outcome NO_METHOD
      The method is none this class does.
    • FAILED

      public static final UserMFA.Outcome FAILED
      The database or the server's keys failed; logged.
  • Method Details

    • values

      public static UserMFA.Outcome[] 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 UserMFA.Outcome 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