public final class SwitchUserGrantedAuthority
extends java.lang.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(java.lang.String role,
org.springframework.security.core.Authentication source) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAuthority() |
org.springframework.security.core.Authentication |
getSource()
Returns the original user associated with a successful user switch.
|
int |
hashCode() |
java.lang.String |
toString() |
public SwitchUserGrantedAuthority(java.lang.String role,
org.springframework.security.core.Authentication source)
public org.springframework.security.core.Authentication getSource()
Authentication object of the switched user.public java.lang.String getAuthority()
getAuthority in interface org.springframework.security.core.GrantedAuthoritypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object