Class 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 any LoginAttemptMessage. 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 Detail

      • LoginAttemptListener

        public LoginAttemptListener​(int throttleCount,
                                    long throttleTime)
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(LoginAttemptMessage lam)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<LoginAttemptMessage>