public class AfterAuthenticationEvent
extends org.springframework.context.ApplicationEvent
AuthenticationManager after user is authenticated or authentication failed. There is
an active database transaction when the event is published. Note that: in case of exception from the database this
transaction could be marked as rollback-only.
SecurityContext is set to AppContext. It has system user
session that has full permissions in the system.
| Constructor and Description |
|---|
AfterAuthenticationEvent(Credentials source,
AuthenticationDetails authenticationDetails) |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationDetails |
getAuthenticationDetails() |
Credentials |
getCredentials() |
Credentials |
getSource() |
public AfterAuthenticationEvent(Credentials source, @Nullable AuthenticationDetails authenticationDetails)
public Credentials getSource()
getSource in class java.util.EventObjectpublic Credentials getCredentials()
@Nullable public AuthenticationDetails getAuthenticationDetails()