Enum Class AbuseDimension

java.lang.Object
java.lang.Enum<AbuseDimension>
com.svenruppert.jsentinel.credential.abuse.AbuseDimension
All Implemented Interfaces:
Serializable, Comparable<AbuseDimension>, Constable

public enum AbuseDimension extends Enum<AbuseDimension>
Counter dimension used by AbuseDetectionService.

The Konzept §13 calls out a fixed set of axes; this enum names them so policies and audit events stay structural and consistent.

  • Enum Constant Details

    • USERNAME

      public static final AbuseDimension USERNAME
      Per-username counter — defends against targeted brute force.
    • CLIENT_ADDRESS

      public static final AbuseDimension CLIENT_ADDRESS
      Per-client-address counter — defends against client-level abuse.
    • TENANT

      public static final AbuseDimension TENANT
      Per-tenant counter — protects a shared customer slice.
    • GLOBAL

      public static final AbuseDimension GLOBAL
      Process-wide counter — last-resort global ceiling.
  • Method Details

    • values

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