public final class SwitchUserGrantedAuthority extends Object implements org.springframework.security.core.GrantedAuthority
GrantedAuthority used by
SwitchUserFilter
Stores the Authentication object of the original user to be used later when
'exiting' from a user switch.
SwitchUserFilter,
Serialized Form| Constructor and Description |
|---|
SwitchUserGrantedAuthority(String role,
org.springframework.security.core.Authentication source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAuthority() |
org.springframework.security.core.Authentication |
getSource()
Returns the original user associated with a successful user switch.
|
int |
hashCode() |
String |
toString() |
public SwitchUserGrantedAuthority(String role, org.springframework.security.core.Authentication source)
public org.springframework.security.core.Authentication getSource()
Authentication object of the switched user.public String getAuthority()
getAuthority in interface org.springframework.security.core.GrantedAuthority