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)
Handle an application event.
|
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, setSubjectPrefixpublic void setContactUser(boolean contactUser)
public void setContactSystem(boolean contactSystem)
public void setOnAllUsers(boolean onAllUsers)
public void onApplicationEvent(LoginAttemptMessage lam)
org.springframework.context.ApplicationListeneronApplicationEvent in interface org.springframework.context.ApplicationListener<LoginAttemptMessage>lam - the event to respond to
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.