public class AfterLoginEvent
extends org.springframework.context.ApplicationEvent
AuthenticationManager
after user is logged in or login failed. 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()
,
BeforeLoginEvent
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected AuthenticationDetails |
authenticationDetails |
Constructor and Description |
---|
AfterLoginEvent(Credentials source,
AuthenticationDetails authenticationDetails) |
Modifier and Type | Method and Description |
---|---|
AuthenticationDetails |
getAuthenticationDetails() |
Credentials |
getCredentials() |
Credentials |
getSource() |
UserSession |
getUserSession() |
protected final AuthenticationDetails authenticationDetails
public AfterLoginEvent(Credentials source, @Nullable AuthenticationDetails authenticationDetails)
public Credentials getSource()
getSource
in class java.util.EventObject
public Credentials getCredentials()
@Nullable public UserSession getUserSession()
@Nullable public AuthenticationDetails getAuthenticationDetails()