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:
- java.io.Serializable
 
 public class AuthenticationSwitchUserEvent extends AbstractAuthenticationEvent Application event which indicates that a user context switch.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description AuthenticationSwitchUserEvent(Authentication authentication, UserDetails targetUser)Switch user context event constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDetailsgetTargetUser()- 
Methods inherited from class org.springframework.security.authentication.event.AbstractAuthenticationEventgetAuthentication
 
- 
 
- 
- 
- 
Constructor Detail- 
AuthenticationSwitchUserEventpublic AuthenticationSwitchUserEvent(Authentication authentication, UserDetails targetUser) Switch user context event constructor- Parameters:
- authentication- The current- Authenticationobject
- targetUser- The target user
 
 
- 
 - 
Method Detail- 
getTargetUserpublic UserDetails getTargetUser() 
 
- 
 
-