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(Set<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 onApplicationEvent(LoginAttemptMessage lam)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<LoginAttemptMessage>
Version: 5.4.0-ice35-b74
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.