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 FormConstructor and Description |
---|
SwitchUserGrantedAuthority(String role,
org.springframework.security.core.Authentication source) |
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