org.springframework.security.ui.switchuser
Class SwitchUserGrantedAuthority
java.lang.Object
org.springframework.security.GrantedAuthorityImpl
org.springframework.security.ui.switchuser.SwitchUserGrantedAuthority
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, GrantedAuthority
public class SwitchUserGrantedAuthority
- extends GrantedAuthorityImpl
Custom GrantedAuthority
used by SwitchUserProcessingFilter
Stores
the Authentication
object of the original user to be used later when 'exiting' from a user switch.
- Version:
- $Id: SwitchUserGrantedAuthority.java 2217 2007-10-27 00:45:30Z luke_t $
- Author:
- Mark St.Godard
- See Also:
SwitchUserProcessingFilter
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SwitchUserGrantedAuthority
public SwitchUserGrantedAuthority(java.lang.String role,
Authentication source)
getSource
public Authentication getSource()
- Returns the original user associated with a successful user switch.
- Returns:
- The original
Authentication
object of the switched user.