Class WarlockDangerServiceImpl
-
- All Implemented Interfaces:
-
pro.fessional.wings.warlock.service.auth.WarlockDangerService
public class WarlockDangerServiceImpl implements WarlockDangerService
- Since:
2023-07-10
trydofor
-
-
Constructor Summary
Constructors Constructor Description WarlockDangerServiceImpl(int size, int ttl)
-
Method Summary
-
-
Method Detail
-
block
void block(Enum<out Object> authType, String username, int seconds)
block this login
- Parameters:
authType- authn typeusername- usernameseconds- username
-
check
int check(Enum<out Object> authType, String username)
check blocking second
- Parameters:
authType- authn typeusername- username- Returns:
zero or negative mean allow
-
-
-
-