org.springframework.security.web.authentication.switchuser
Class SwitchUserGrantedAuthority
java.lang.Object
org.springframework.security.core.authority.GrantedAuthorityImpl
org.springframework.security.web.authentication.switchuser.SwitchUserGrantedAuthority
- All Implemented Interfaces:
- Serializable, org.springframework.security.core.GrantedAuthority
public class SwitchUserGrantedAuthority
- extends org.springframework.security.core.authority.GrantedAuthorityImpl
Custom GrantedAuthority used by SwitchUserFilter
Stores
the Authentication object of the original user to be used later when 'exiting' from a user switch.
- Author:
- Mark St.Godard
- See Also:
SwitchUserFilter,
Serialized Form
|
Method Summary |
org.springframework.security.core.Authentication |
getSource()
Returns the original user associated with a successful user switch. |
| Methods inherited from class org.springframework.security.core.authority.GrantedAuthorityImpl |
equals, getAuthority, hashCode, toString |
SwitchUserGrantedAuthority
public SwitchUserGrantedAuthority(String role,
org.springframework.security.core.Authentication source)
getSource
public org.springframework.security.core.Authentication getSource()
- Returns the original user associated with a successful user switch.
- Returns:
- The original
Authentication object of the switched user.