LEVIATHAN v962456e · 962456eee1

atlantis · Auth

class LoginThrottle

since 0.1.0-alpha.1linux

bases
SweepTimer

Fields

accountThreshold

int accountThreshold

ipThreshold

int ipThreshold

windowMs

int windowMs

windows

Map<string, FailureWindow> windows

Methods

accountLocked

accountLocked(string acctIdLower, int nowMs) -> bool

ipCoolingDown

ipCoolingDown(string ip, int nowMs) -> bool

isLocked

isLocked(string key, int nowMs, int threshold) -> bool

recordAccountFailure

recordAccountFailure(string acctIdLower, int nowMs) -> void

recordFailure

recordFailure(string key, int nowMs) -> void

recordIpFailure

recordIpFailure(string ip, int nowMs) -> void

reset

reset(string key) -> void

resetAccount

resetAccount(string acctIdLower) -> void

resetIp

resetIp(string ip) -> void

startSweep

startSweep() -> void

sweepIdle

sweepIdle(int nowMs) -> void