Enum ActionConfirmationStatus

  • All Implemented Interfaces:
    Serializable, Comparable<ActionConfirmationStatus>

    public enum ActionConfirmationStatus
    extends Enum<ActionConfirmationStatus>
    This enum contains all possible status for an action requiring confirmation calculated from a PasswordInputDTO. A renewable password is a password that the user can discard and request for a new one (i.e an OTP). A medium is the way a user can request for a new renewable password (email, sms, etc).
    • Enum Constant Detail

      • NOT_ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS

        public static final ActionConfirmationStatus NOT_ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS
        The user doesn't have an active renewable and can't request a new one because he doesn't have any allowed medium to request through.
      • NOT_ACTIVE_RENEWABLE_PASSWORD

        public static final ActionConfirmationStatus NOT_ACTIVE_RENEWABLE_PASSWORD
        The user doesn't have an active renewable but has at least one allowed medium to request through it a new OTP.
      • NOT_ACTIVE_PASSWORD

        public static final ActionConfirmationStatus NOT_ACTIVE_PASSWORD
        The user doesn't have an active password then he can't confirm the action because it's not a renewable one.
      • ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS

        public static final ActionConfirmationStatus ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS
        The user has an active password and must confirm with it because he can't request a new one because doesn't have any allowed medium.
      • ACTIVE_RENEWABLE_PASSWORD

        public static final ActionConfirmationStatus ACTIVE_RENEWABLE_PASSWORD
        The user has an active password and can confirm with it or request a new one through one of the allowed mediums.
      • ACTIVE_PASSWORD

        public static final ActionConfirmationStatus ACTIVE_PASSWORD
        The user has an active password and can confirm the action.
      • ACTIVE_DEVICE

        public static final ActionConfirmationStatus ACTIVE_DEVICE
        The user has an active trusted device and can confirm the action.
      • NOT_ACTIVE_DEVICE

        public static final ActionConfirmationStatus NOT_ACTIVE_DEVICE
        The user doesn't have an active trusted device.
      • ACTIVE_DEVICE_OR_PASSWORD

        public static final ActionConfirmationStatus ACTIVE_DEVICE_OR_PASSWORD
        The user has an active trusted device and an active password and can confirm the action.
      • ACTIVE_DEVICE_OR_ACTIVE_RENEWABLE_PASSWORD

        public static final ActionConfirmationStatus ACTIVE_DEVICE_OR_ACTIVE_RENEWABLE_PASSWORD
        The user has an active trusted device and an active password and can confirm with it or request a new one through one of the allowed mediums.
      • ACTIVE_DEVICE_OR_ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS

        public static final ActionConfirmationStatus ACTIVE_DEVICE_OR_ACTIVE_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS
        The user has an active trusted device and an active password and must confirm with it because he can't request a new one because doesn't have any allowed medium.
      • ACTIVE_DEVICE_OR_NOT_ACTIVE_RENEWABLE_PASSWORD

        public static final ActionConfirmationStatus ACTIVE_DEVICE_OR_NOT_ACTIVE_RENEWABLE_PASSWORD
        The user has an active trusted device and doesn't have an active renewable but has at least one allowed medium to request through it a new OTP.
      • NOT_ACTIVE_DEVICE_NOR_PASSWORD

        public static final ActionConfirmationStatus NOT_ACTIVE_DEVICE_NOR_PASSWORD
        The user doesn't have a trusted device nor an active password and can't request for a new one (it isn't renewable) then he can't confirm the action.
      • NOT_ACTIVE_DEVICE_NOR_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS

        public static final ActionConfirmationStatus NOT_ACTIVE_DEVICE_NOR_RENEWABLE_PASSWORD_NOT_ALLOWED_MEDIUMS
        The user doesn't have a trusted device nor an active renewable password and can't request for a new one (there is no allowed mediums) then he can't confirm the action.
    • Method Detail

      • values

        public static ActionConfirmationStatus[] 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 (ActionConfirmationStatus c : ActionConfirmationStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ActionConfirmationStatus 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 name
        NullPointerException - if the argument is null