Class AuthenticationSuccessEventListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationSuccessEvent>

    public class AuthenticationSuccessEventListener
    extends java.lang.Object
    implements org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationSuccessEvent>
    Reset the BruteForceLoginAttemptsModel.setAttempts(Integer) whenever the user logins successfully.
    • Constructor Detail

      • AuthenticationSuccessEventListener

        public AuthenticationSuccessEventListener()
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(org.springframework.security.authentication.event.AuthenticationSuccessEvent event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.security.authentication.event.AuthenticationSuccessEvent>
      • setUserAuditLoginStrategy

        public void setUserAuditLoginStrategy​(UserAuditLoginStrategy userAuditLoginStrategy)