Enum Class FailedSignInStep

java.lang.Object
java.lang.Enum<FailedSignInStep>
com.iizix.user.FailedSignInStep
All Implemented Interfaces:
Serializable, Comparable<FailedSignInStep>, Constable

public enum FailedSignInStep extends Enum<FailedSignInStep>
The step at which a sign-in to a known account failed (CC-SIGNIN-FAILED-ATTEMPTS, order 561): what the server records with the attempt and what the user is told in the list and the mails. Stored by name, so a step is never renamed.
Author:
Christopher Mindus
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The factors passed and the license refused the sign-in.
    A passkey was refused: as the second step after the password, or as the sign-in itself.
    The password was wrong, or the account is disabled or waits after too many failures.
    The factors passed and the sign-in was refused by a policy: the application does not admit the user, the strong policy's client rule, a method not allowed.
    The password was right and a recovery code was wrong.
    The password was right and the code of the authenticator app (or an SMS or e-mail code) was wrong or replayed.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final boolean
    Whether the step comes after the password: a failure at it means that whoever tried KNEW the password ("almost signed in"), which is told the user every time.
  • Method Summary

    Modifier and Type
    Method
    Description
    of(String name)
    Gets a step by its stored name.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PASSWORD

      public static final FailedSignInStep PASSWORD
      The password was wrong, or the account is disabled or waits after too many failures.
    • SECOND_FACTOR

      public static final FailedSignInStep SECOND_FACTOR
      The password was right and the code of the authenticator app (or an SMS or e-mail code) was wrong or replayed.
    • PASSKEY

      public static final FailedSignInStep PASSKEY
      A passkey was refused: as the second step after the password, or as the sign-in itself.
    • RECOVERY_CODE

      public static final FailedSignInStep RECOVERY_CODE
      The password was right and a recovery code was wrong.
    • POLICY

      public static final FailedSignInStep POLICY
      The factors passed and the sign-in was refused by a policy: the application does not admit the user, the strong policy's client rule, a method not allowed.
    • LICENSE

      public static final FailedSignInStep LICENSE
      The factors passed and the license refused the sign-in.
  • Field Details

    • afterPassword

      public final boolean afterPassword
      Whether the step comes after the password: a failure at it means that whoever tried KNEW the password ("almost signed in"), which is told the user every time. PASSKEY depends on the path and is decided by the caller.
  • Method Details

    • values

      public static FailedSignInStep[] 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 FailedSignInStep 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
    • of

      public static FailedSignInStep of(String name)
      Gets a step by its stored name.
      Parameters:
      name - The name, null for none.
      Returns:
      The step, PASSWORD for null or an unknown name.