Class AuthenticationFailureEventListener
java.lang.Object
de.hybris.platform.servicelayer.user.listener.AuthenticationFailureEventListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent>
public class AuthenticationFailureEventListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent>
Disable the user and add a record in
BruteForceLoginDisabledAuditModel table when the number of consecutive
failed logins exceed the strictest PrincipalGroupModel.getMaxBruteForceLoginAttempts()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event) voidsetUserAuditLoginStrategy(UserAuditLoginStrategy userAuditLoginStrategy)
-
Constructor Details
-
AuthenticationFailureEventListener
public AuthenticationFailureEventListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationFailureBadCredentialsEvent>
-
setUserAuditLoginStrategy
-