org.springframework.security.ui.switchuser
Class SwitchUserGrantedAuthority
java.lang.Object
org.springframework.security.GrantedAuthorityImpl
org.springframework.security.ui.switchuser.SwitchUserGrantedAuthority
- All Implemented Interfaces:
- Serializable, 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$
- Author:
- Mark St.Godard
- See Also:
SwitchUserProcessingFilter
,
Serialized Form
SwitchUserGrantedAuthority
public SwitchUserGrantedAuthority(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.
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.