Class FailedLoginMailSender

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.context.ApplicationListener<LoginAttemptMessage>

    public class FailedLoginMailSender
    extends MailSender
    implements org.springframework.context.ApplicationListener<LoginAttemptMessage>
    On an LoginAttemptMessage potentially send an email to administrators or the user herself to alert of possible security issues.
    Since:
    5.1.0
    • Constructor Detail

      • FailedLoginMailSender

        public FailedLoginMailSender()
    • Method Detail

      • setContactUser

        public void setContactUser​(boolean contactUser)
      • setContactSystem

        public void setContactSystem​(boolean contactSystem)
      • setOnAllUsers

        public void setOnAllUsers​(boolean onAllUsers)
      • setOnSpecificUsers

        public void setOnSpecificUsers​(java.util.Set<java.lang.String> onSpecificUsers)
      • onApplicationEvent

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