public interface SwitchUserAuthorityChanger
|Modifier and Type||Method and Description|
Allow subclasses to add or remove authorities that will be granted when in switch user mode.
Collection<? extends GrantedAuthority> modifyGrantedAuthorities(UserDetails targetUser, Authentication currentAuthentication, Collection<? extends GrantedAuthority> authoritiesToBeGranted)
targetUser- the UserDetails representing the identity being switched to
currentAuthentication- the current Authentication of the principal performing the switching
GrantedAuthorityinstances to be granted to the user, excluding the special "switch user" authority that is used internally (guaranteed never null)