|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SwitchUserAuthorityChanger
Allows subclasses to modify the GrantedAuthority
list that will be assigned to the principal
when they assume the identity of a different principal.
Configured against the SwitchUserFilter
.
Method Summary | |
---|---|
Collection<GrantedAuthority> |
modifyGrantedAuthorities(UserDetails targetUser,
Authentication currentAuthentication,
Collection<GrantedAuthority> authoritiesToBeGranted)
Allow subclasses to add or remove authorities that will be granted when in switch user mode. |
Method Detail |
---|
Collection<GrantedAuthority> modifyGrantedAuthorities(UserDetails targetUser, Authentication currentAuthentication, Collection<GrantedAuthority> 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |