Spring Security Framework

org.springframework.security.event.authentication
Class AuthenticationSwitchUserEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.springframework.context.ApplicationEvent
          extended by org.springframework.security.event.authentication.AbstractAuthenticationEvent
              extended by org.springframework.security.event.authentication.AuthenticationSwitchUserEvent
All Implemented Interfaces:
Serializable

public class AuthenticationSwitchUserEvent
extends AbstractAuthenticationEvent

Application event which indicates that a user context switch.

Version:
$Id$
Author:
Mark St.Godard
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AuthenticationSwitchUserEvent(Authentication authentication, UserDetails targetUser)
          Switch user context event constructor
 
Method Summary
 UserDetails getTargetUser()
           
 
Methods inherited from class org.springframework.security.event.authentication.AbstractAuthenticationEvent
getAuthentication
 
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthenticationSwitchUserEvent

public AuthenticationSwitchUserEvent(Authentication authentication,
                                     UserDetails targetUser)
Switch user context event constructor

Parameters:
authentication - The current Authentication object
targetUser - The target user
Method Detail

getTargetUser

public UserDetails getTargetUser()

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.