Package ome.security.auth
Class LoginAttemptListener
- java.lang.Object
-
- ome.security.auth.LoginAttemptListener
-
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.context.ApplicationListener<LoginAttemptMessage>
public class LoginAttemptListener extends java.lang.Object implements org.springframework.context.ApplicationListener<LoginAttemptMessage>
Listens for anyLoginAttemptMessage
. If there are more than some number of failures, then throttling beings to reduce the number of possible checks. The next successful check resets the count to 0. The state is not stored between server restarts.- Since:
- 4.2.1
- See Also:
SecuritySystem
,Permissions
-
-
Constructor Summary
Constructors Constructor Description LoginAttemptListener(int throttleCount, long throttleTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(LoginAttemptMessage lam)
-
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(LoginAttemptMessage lam)
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<LoginAttemptMessage>
-
-