Class AbuseLimitsPolicy

java.lang.Object
com.svenruppert.jsentinel.credential.abuse.AbuseLimitsPolicy

public final class AbuseLimitsPolicy extends Object
Per-dimension and per-attempt-type limits consumed by InMemoryAbuseDetectionService.

The model is intentionally simple: each (AbuseAttemptType, AbuseDimension) key carries a sliding window of length window and three escalating failure thresholds — delayAt, stepUpAt, blockAt — that map onto AbuseDecision.Delay, AbuseDecision.RequireAdditionalCheck and AbuseDecision.Block respectively. Successful attempts reset the per-username failure counter; volume counters (CLIENT_ADDRESS / TENANT / GLOBAL) keep tracking regardless of outcome.