public class AuthenticationFailureEvent
Event that is fired by 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.
Event is fired when special instance of SecurityContext is set to AppContext. It has system user
session that has full permissions in the system.
Event handlers may throw custom LoginException instance before caught instance will be rethrown.