Package ome.services.mail
Class FailedLoginMailSender
- java.lang.Object
-
- ome.services.mail.MailSender
-
- ome.services.mail.FailedLoginMailSender
-
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.context.ApplicationListener<LoginAttemptMessage>
public class FailedLoginMailSender extends MailSender implements org.springframework.context.ApplicationListener<LoginAttemptMessage>
On anLoginAttemptMessage
potentially send an email to administrators or the user herself to alert of possible security issues.- Since:
- 5.1.0
-
-
Field Summary
-
Fields inherited from class ome.services.mail.MailSender
log
-
-
Constructor Summary
Constructors Constructor Description FailedLoginMailSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onApplicationEvent(LoginAttemptMessage lam)
void
setContactSystem(boolean contactSystem)
void
setContactUser(boolean contactUser)
void
setOnAllUsers(boolean onAllUsers)
void
setOnSpecificUsers(java.util.Set<java.lang.String> onSpecificUsers)
-
Methods inherited from class ome.services.mail.MailSender
addUser, getAllSystemUsers, getDefaultBody, getExecutor, getMailUtil, getQueryService, getRoles, getSubjectPrefix, getUserEmail, isEnabled, sendBlind, sendBlind, setDefaultBody, setEnabled, setExecutor, setMailUtil, setQueryService, setRoles, setSubjectPrefix
-
-
-
-
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 interfaceorg.springframework.context.ApplicationListener<LoginAttemptMessage>
-
-