public class SwitchUserGrantedAuthority extends GrantedAuthorityImpl
GrantedAuthority used by SwitchUserProcessingFilterStores
the Authentication object of the original user to be used later when 'exiting' from a user switch.
SwitchUserProcessingFilter,
Serialized Form| Constructor and Description |
|---|
SwitchUserGrantedAuthority(java.lang.String role,
Authentication source) |
| Modifier and Type | Method and Description |
|---|---|
Authentication |
getSource()
Returns the original user associated with a successful user switch.
|
compareTo, equals, getAuthority, hashCode, toStringpublic SwitchUserGrantedAuthority(java.lang.String role,
Authentication source)
public Authentication getSource()
Authentication object of the switched user.