public class UserLoggedInEvent
extends org.springframework.context.ApplicationEvent
AuthenticationManager
after user is logged in and user session is completely
initialized and stored in user sessions storage. There is no active transaction at the moment of event publishing.
Event handlers must start a new transaction if they work with database.
SecurityContext
is set to AppContext
. It has system user
session that has full permissions in the system.UserSession.isSystem()
,
UserLoggedOutEvent
,
Serialized FormConstructor and Description |
---|
UserLoggedInEvent(Credentials credentials,
AuthenticationDetails authenticationDetails) |
Modifier and Type | Method and Description |
---|---|
AuthenticationDetails |
getAuthenticationDetails() |
Credentials |
getSource() |
UserSession |
getUserSession() |
public UserLoggedInEvent(Credentials credentials, AuthenticationDetails authenticationDetails)
public Credentials getSource()
getSource
in class java.util.EventObject
public UserSession getUserSession()
public AuthenticationDetails getAuthenticationDetails()