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
Application event which indicates that a user context switch.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionAuthenticationSwitchUserEvent(Authentication authentication, @Nullable UserDetails targetUser) Switch user context event constructor
- 
Method SummaryMethods inherited from class org.springframework.security.authentication.event.AbstractAuthenticationEventgetAuthenticationMethods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
AuthenticationSwitchUserEventpublic AuthenticationSwitchUserEvent(Authentication authentication, @Nullable UserDetails targetUser) Switch user context event constructor- Parameters:
- authentication- The current- Authenticationobject
- targetUser- The target user
 
 
- 
- 
Method Details- 
getTargetUser
 
-