Enum Class InvalidLoginPolicy

java.lang.Object
java.lang.Enum<InvalidLoginPolicy>
org.exoplatform.web.security.errorlogin.InvalidLoginPolicy
All Implemented Interfaces:
Serializable, Comparable<InvalidLoginPolicy>, Constable

public enum InvalidLoginPolicy extends Enum<InvalidLoginPolicy>
Policy for indication that invalid login attempts are coming from same source. For example:
If value is SERVER, then mail will be send after detection of 3 successive invalid login attempts from same remote server.
If value is SESSION, then mail will be send after detection of 3 successive invalid login attempts from same HTTP session.
etc.
  • Enum Constant Details

    • SESSION

      public static final InvalidLoginPolicy SESSION
      SESSION is default and it means that login attempts are coming from same HTTP session.
    • SESSION_AND_USER

      public static final InvalidLoginPolicy SESSION_AND_USER
      SESSION_AND_USER is indicating login attempts of same user and from same HTTP session.
    • SERVER

      public static final InvalidLoginPolicy SERVER
      SERVER means login attempts from same remote server.
  • Method Details

    • values

      public static InvalidLoginPolicy[] 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 InvalidLoginPolicy 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