public class FailedLoginMailSender extends MailSender implements org.springframework.context.ApplicationListener<LoginAttemptMessage>
LoginAttemptMessage
potentially send an email to administrators
or the user herself to alert of possible security issues.log
Constructor and Description |
---|
FailedLoginMailSender() |
Modifier and Type | Method and 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) |
addUser, getAllSystemUsers, getDefaultBody, getExecutor, getMailUtil, getQueryService, getRoles, getSubjectPrefix, getUserEmail, isEnabled, sendBlind, sendBlind, setDefaultBody, setEnabled, setExecutor, setMailUtil, setQueryService, setRoles, setSubjectPrefix
public void setContactUser(boolean contactUser)
public void setContactSystem(boolean contactSystem)
public void setOnAllUsers(boolean onAllUsers)
public void setOnSpecificUsers(java.util.Set<java.lang.String> onSpecificUsers)
public void onApplicationEvent(LoginAttemptMessage lam)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<LoginAttemptMessage>
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.