1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.acegisecurity.event.authentication;
17
18 import org.acegisecurity.Authentication;
19
20 import org.springframework.context.ApplicationEvent;
21
22
23 /***
24 * Represents an application authentication event.
25 *
26 * <P>
27 * The <code>ApplicationEvent</code>'s <code>source</code> will be the
28 * <code>Authentication</code> object.
29 * </p>
30 *
31 * @author Ben Alex
32 * @version $Id: AbstractAuthenticationEvent.java,v 1.2 2005/11/17 00:55:48 benalex Exp $
33 */
34 public abstract class AbstractAuthenticationEvent extends ApplicationEvent {
35
36
37 public AbstractAuthenticationEvent(Authentication authentication) {
38 super(authentication);
39 }
40
41
42
43 /***
44 * Getters for the <code>Authentication</code> request that caused the
45 * event. Also available from <code>super.getSource()</code>.
46 *
47 * @return the authentication request
48 */
49 public Authentication getAuthentication() {
50 return (Authentication) super.getSource();
51 }
52 }