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.util.Assert;
21
22
23 /***
24 * Indicates an interactive authentication was successful.
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: InteractiveAuthenticationSuccessEvent.java,v 1.2 2005/11/17 00:55:48 benalex Exp $
33 */
34 public class InteractiveAuthenticationSuccessEvent
35 extends AbstractAuthenticationEvent {
36
37
38 private Class generatedBy;
39
40
41
42 public InteractiveAuthenticationSuccessEvent(
43 Authentication authentication, Class generatedBy) {
44 super(authentication);
45 Assert.notNull(generatedBy);
46 this.generatedBy = generatedBy;
47 }
48
49
50
51 /***
52 * Getter for the <code>Class</code> that generated this event. This can be
53 * useful for generating additional logging information.
54 *
55 * @return
56 */
57 public Class getGeneratedBy() {
58 return generatedBy;
59 }
60 }