Uses of Enum Class
org.codelibs.fess.api.v2.handlers.LoginRateLimiter.Scope
Packages that use LoginRateLimiter.Scope
-
Uses of LoginRateLimiter.Scope in org.codelibs.fess.api.v2.handlers
Methods in org.codelibs.fess.api.v2.handlers that return LoginRateLimiter.ScopeModifier and TypeMethodDescriptionstatic LoginRateLimiter.ScopeReturns the enum constant of this class with the specified name.static LoginRateLimiter.Scope[]LoginRateLimiter.Scope.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.codelibs.fess.api.v2.handlers with parameters of type LoginRateLimiter.ScopeModifier and TypeMethodDescriptionbooleanLoginRateLimiter.allow(LoginRateLimiter.Scope scope, String key, int maxPerWindow, int windowSeconds) Attempts to consume one slot in the (scope, key) bucket within a sliding window ofwindowSeconds.voidLoginRateLimiter.clear(LoginRateLimiter.Scope scope, String key) Clears the rate-limit bucket for (scope, key) after a successful login so that the user is not penalized for earlier failed attempts in the same window.voidLoginRateLimiter.lockOut(LoginRateLimiter.Scope scope, String key, int lockoutSeconds) m-21: uses Math.max so that a shorter lockoutSeconds value supplied in a second call never shrinks an existing longer lockout — the stricter deadline always wins.booleanLoginRateLimiter.peek(LoginRateLimiter.Scope scope, String key, int maxPerWindow, int windowSeconds) Returns true when a fresh attempt against (scope, key) would currently be admitted byLoginRateLimiter.allow(org.codelibs.fess.api.v2.handlers.LoginRateLimiter.Scope, java.lang.String, int, int), but without consuming a bucket slot.