浏览代码

Doc InteractiveAuthenticationEvent doesn't extend AuthentcationEvent

Document why InteractiveAuthenticationEvent doesn't extend
AuthentcationEvent. This is to avoid multiple AuthenticationSuccessEvent
from being sent to any listeners.

Fixes gh-3857
Rob Winch 9 年之前
父节点
当前提交
d2b909e7c5

+ 4 - 0
core/src/main/java/org/springframework/security/authentication/event/InteractiveAuthenticationSuccessEvent.java

@@ -26,6 +26,10 @@ import org.springframework.util.Assert;
  * The <code>ApplicationEvent</code>'s <code>source</code> will be the
  * <code>Authentication</code> object.
  * </p>
+ * <p>
+ * This does not extend from <code>AuthenticationSuccessEvent</code> to avoid duplicate
+ * <code>AuthenticationSuccessEvent</code>s being sent to any listeners.
+ * </p>
  *
  * @author Ben Alex
  */