public interface SwitchUserAuthorityChanger
GrantedAuthority list that will be assigned to the principal
when they assume the identity of a different principal.
Configured against the SwitchUserProcessingFilter.
| Modifier and Type | Method and Description |
|---|---|
void |
modifyGrantedAuthorities(UserDetails targetUser,
Authentication currentAuthentication,
List authoritiesToBeGranted)
Allow subclasses to add or remove authorities that will be granted when in switch user mode.
|
void modifyGrantedAuthorities(UserDetails targetUser, Authentication currentAuthentication, List authoritiesToBeGranted)
targetUser - the UserDetails representing the identity being switched tocurrentAuthentication - the current Authentication of the principal performing the switchingauthoritiesToBeGranted - all GrantedAuthority instances to be granted to the user,
excluding the special "switch user" authority that is used internally (guaranteed never null)Copyright © 2016. All rights reserved.