Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.ui.switchuser
Class SwitchUserGrantedAuthority  view SwitchUserGrantedAuthority download SwitchUserGrantedAuthority.java

java.lang.Object
  extended byGrantedAuthorityImpl
      extended byorg.acegisecurity.ui.switchuser.SwitchUserGrantedAuthority

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,v 1.2 2005/11/17 00:56:10 benalex Exp $

Field Summary
private  org.acegisecurity.Authentication source
           
 
Constructor Summary
SwitchUserGrantedAuthority(java.lang.String role, org.acegisecurity.Authentication source)
           
 
Method Summary
 org.acegisecurity.Authentication getSource()
          Returns the original user associated with a successful user switch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

private org.acegisecurity.Authentication source
Constructor Detail

SwitchUserGrantedAuthority

public SwitchUserGrantedAuthority(java.lang.String role,
                                  org.acegisecurity.Authentication source)
Method Detail

getSource

public org.acegisecurity.Authentication getSource()
Returns the original user associated with a successful user switch.