Class LoginAttemptListener
java.lang.Object
org.craftercms.studio.impl.v2.security.listener.LoginAttemptListener
Listener that handles login attempts and adds a delay to the response.
This listener will add a random delay to all login attempts, successful or not.
It will notify the
This listener will add a random delay to all login attempts, successful or not.
It will notify the
LoginAttemptManager of the login attempt result.- Since:
- 4.1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleFailedAttempt(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event) voidhandleSuccessfulAttempt(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)
-
Constructor Details
-
LoginAttemptListener
-
-
Method Details
-
handleSuccessfulAttempt
@EventListener public void handleSuccessfulAttempt(org.springframework.security.authentication.event.AuthenticationSuccessEvent event) -
handleFailedAttempt
@EventListener public void handleFailedAttempt(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event)
-