org.springframework.security.web.authentication.switchuser
Class AuthenticationSwitchUserEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.authentication.event.AbstractAuthenticationEvent
org.springframework.security.web.authentication.switchuser.AuthenticationSwitchUserEvent
- All Implemented Interfaces:
- Serializable
public class AuthenticationSwitchUserEvent
- extends org.springframework.security.authentication.event.AbstractAuthenticationEvent
Application event which indicates that a user context switch.
- Author:
- Mark St.Godard
- See Also:
- Serialized Form
|
Constructor Summary |
AuthenticationSwitchUserEvent(org.springframework.security.core.Authentication authentication,
org.springframework.security.core.userdetails.UserDetails targetUser)
Switch user context event constructor |
|
Method Summary |
org.springframework.security.core.userdetails.UserDetails |
getTargetUser()
|
| Methods inherited from class org.springframework.security.authentication.event.AbstractAuthenticationEvent |
getAuthentication |
AuthenticationSwitchUserEvent
public AuthenticationSwitchUserEvent(org.springframework.security.core.Authentication authentication,
org.springframework.security.core.userdetails.UserDetails targetUser)
- Switch user context event constructor
- Parameters:
authentication - The current Authentication objecttargetUser - The target user
getTargetUser
public org.springframework.security.core.userdetails.UserDetails getTargetUser()