Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.acegisecurity.ui.switchuser
Class SwitchUserGrantedAuthority

    java.lang.Object
      org.acegisecurity.GrantedAuthorityImpl
          org.acegisecurity.ui.switchuser.SwitchUserGrantedAuthority

All Implemented Interfaces:
  Serializable, 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,v 1.2 2005/11/17 00:56:10 benalex Exp $
Author:
  Mark St.Godard
See Also:
  `SwitchUserProcessingFilter`, Serialized Form

Constructor Summary
`SwitchUserGrantedAuthority(String role, Authentication source)`

Method Summary
`Authentication` | `getSource()` Returns the original user associated with a successful user switch.

Methods inherited from class org.acegisecurity.GrantedAuthorityImpl
`equals, getAuthority, hashCode, toString`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### SwitchUserGrantedAuthority

    public SwitchUserGrantedAuthority(String role,
                                      Authentication source)

Method Detail

### getSource

    public Authentication getSource()

  Returns the original user associated with a successful user switch.

  Returns:
    The original `Authentication` object of the switched user.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2005 Acegi Technology Pty Limited. All Rights Reserved.