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 org.springframework.security.authentication.event.AbstractAuthenticationEvent
Application event which indicates that a user context switch.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthenticationSwitchUserEvent(org.springframework.security.core.Authentication authentication, org.springframework.security.core.userdetails.UserDetails targetUser)
Switch user context event constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.security.core.userdetails.UserDetails
getTargetUser()
-
-
-
Constructor Detail
-
AuthenticationSwitchUserEvent
public AuthenticationSwitchUserEvent(org.springframework.security.core.Authentication authentication, org.springframework.security.core.userdetails.UserDetails targetUser)
Switch user context event constructor- Parameters:
authentication
- The currentAuthentication
objecttargetUser
- The target user
-
-