();
+
+ public void onApplicationEvent(AbstractAuthenticationEvent event) {
+ events.add(event);
+ }
+ }
}
diff --git a/core/src/main/java/org/springframework/security/authentication/DefaultAuthenticationEventPublisher.java b/core/src/main/java/org/springframework/security/authentication/DefaultAuthenticationEventPublisher.java
index 6732e40420..addb297002 100644
--- a/core/src/main/java/org/springframework/security/authentication/DefaultAuthenticationEventPublisher.java
+++ b/core/src/main/java/org/springframework/security/authentication/DefaultAuthenticationEventPublisher.java
@@ -24,7 +24,7 @@ import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.util.Assert;
/**
- * The default strategy used by ProviderManager for publishing authentication events.
+ * The default strategy for publishing authentication events.
*
* Maps well-known AuthenticationException types to events and publishes them via the
* application context. If configured as a bean, it will pick up the ApplicationEventPublisher automatically.