atlantis · Auth
class LoginThrottle
since 0.1.0-alpha.1linux
- bases
SweepTimer
Fields
accountThreshold
int accountThresholdipThreshold
int ipThresholdwindowMs
int windowMswindows
Map<string, FailureWindow> windowsMethods
accountLocked
accountLocked(string acctIdLower, int nowMs) -> boolipCoolingDown
ipCoolingDown(string ip, int nowMs) -> boolisLocked
isLocked(string key, int nowMs, int threshold) -> boolrecordAccountFailure
recordAccountFailure(string acctIdLower, int nowMs) -> voidrecordFailure
recordFailure(string key, int nowMs) -> voidrecordIpFailure
recordIpFailure(string ip, int nowMs) -> voidreset
reset(string key) -> voidresetAccount
resetAccount(string acctIdLower) -> voidresetIp
resetIp(string ip) -> voidstartSweep
startSweep() -> voidsweepIdle
sweepIdle(int nowMs) -> void