public class AuthenticationSwitchUserEvent extends AbstractAuthenticationEvent
Constructor and Description |
---|
AuthenticationSwitchUserEvent(Authentication authentication,
UserDetails targetUser)
Switch user context event constructor
|
Modifier and Type | Method and Description |
---|---|
UserDetails |
getTargetUser() |
getAuthentication
public AuthenticationSwitchUserEvent(Authentication authentication, UserDetails targetUser)
authentication
- The current Authentication
objecttargetUser
- The target userpublic UserDetails getTargetUser()