public class AuthenticationFailureEvent
extends org.springframework.context.ApplicationEvent
AuthenticationManager if user authentication failed against
one of AuthenticationProviders, i.e. AuthenticationProvider has thrown exception. 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 |
|---|
AuthenticationFailureEvent(Credentials credentials,
AuthenticationProvider provider,
LoginException exception) |
| Modifier and Type | Method and Description |
|---|---|
Credentials |
getCredentials() |
LoginException |
getException() |
AuthenticationProvider |
getProvider() |
Credentials |
getSource() |
public AuthenticationFailureEvent(Credentials credentials, AuthenticationProvider provider, LoginException exception)
public Credentials getSource()
getSource in class java.util.EventObjectpublic Credentials getCredentials()
public AuthenticationProvider getProvider()
public LoginException getException()