public class SuccessfulLoginEvent extends ApplicationEvent
source| Constructor and Description |
|---|
SuccessfulLoginEvent(UI source,
Authentication authentication)
Creates a new event.
|
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getAuthentication()
Returns the authentication token of the user.
|
UI |
getSource() |
getTimestamptoStringpublic SuccessfulLoginEvent(UI source, Authentication authentication)
source - the UI instance in which the user logged in.authentication - the authentication token returned by the Spring AuthenticationManager.public Authentication getAuthentication()
public UI getSource()
getSource in class EventObjectCopyright © 2017. All rights reserved.