org.jasig.portal.portlets.swapper
Class IdentitySwapperPrincipal

java.lang.Object
  extended by org.jasig.portal.portlets.swapper.IdentitySwapperPrincipal
All Implemented Interfaces:
Serializable, IPrincipal

public class IdentitySwapperPrincipal
extends Object
implements IPrincipal

Implements an immutable IPrincipal for use with the identity swapper

Version:
$Revision$
Author:
Eric Dalquist
See Also:
Serialized Form

Constructor Summary
IdentitySwapperPrincipal(IPerson person)
           
 
Method Summary
 String getFullName()
          Returns the human-readable name of the principal.
 String getGlobalUID()
          Returns the globally unique user identifier for this principal.
 String getUID()
          Returns the locally unique username or user identifier for this principal.
 void setUID(String UID)
          Sets the locally unique username in preparation for authentication.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentitySwapperPrincipal

public IdentitySwapperPrincipal(IPerson person)
Method Detail

getFullName

public String getFullName()
Description copied from interface: IPrincipal
Returns the human-readable name of the principal. This should be either their first and last name or whatever local convention dicates should be returned by the CommonName (CN) attribute for those security contexts using X.509 style naming.

Specified by:
getFullName in interface IPrincipal

getGlobalUID

public String getGlobalUID()
Description copied from interface: IPrincipal
Returns the globally unique user identifier for this principal. This identifier should be maximally unique within the scope of the deployed security mechanism.

Specified by:
getGlobalUID in interface IPrincipal

getUID

public String getUID()
Description copied from interface: IPrincipal
Returns the locally unique username or user identifier for this principal.

Specified by:
getUID in interface IPrincipal

setUID

public void setUID(String UID)
Description copied from interface: IPrincipal
Sets the locally unique username in preparation for authentication. Note that post-authentication, an attempt to set a UID may either fail or reset the authentication status of the security context container.

Specified by:
setUID in interface IPrincipal
Parameters:
UID - The desired locally unique UID value.


Copyright © 2010 Jasig. All Rights Reserved.