IBM WebSphere Extended Deployment (XD)TM
Release 6.0

com.ibm.websphere.objectgrid.security.plugins.builtins
SimpleUserPrincipal

java.lang.Object
  |
  +--com.ibm.websphere.objectgrid.security.plugins.builtins.SimpleUserPrincipal
All Implemented Interfaces
Principal, Serializable


This class implements the Principal interface and represents a simple user.
See Also:

    PrincipalSubject



Constructor Summary
SimpleUserPrincipal(java.lang.String)
           Create a SimpleUserPrincipal with a username..


Method Summary
public  StringgetName()
           Return the username for this SimpleUserPrincipal..
public  StringtoString()
           Return a string representation of this SimpleUserPrincipal..
public  booleanequals(java.lang.Object)
           Compares the specified Object with this SimpleUserPrincipal for equality.
public  inthashCode()
           Return a hash code for this SimpleUserPrincipal..

Inherited Methods

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

Constructor Detail

SimpleUserPrincipal

public SimpleUserPrincipal( String _name)
Create a SimpleUserPrincipal with a username.

Parameters:
_name - the Sample username for this user.


Method Detail

getName

public String getName()
Return the username for this SimpleUserPrincipal.



Returns:
     the Sample username for this SimpleUserPrincipal


toString

public String toString()
Return a string representation of this SimpleUserPrincipal.



Returns:
     a string representation of this SimpleUserPrincipal.


equals

public boolean equals(Object o)
Compares the specified Object with this SimpleUserPrincipal for equality. Returns true if the given object is also a SimpleUserPrincipal and the two SimplePrincipals have the same username.

Parameters:
    o - Object to be compared for equality with this SimpleUserPrincipal.


Returns:
     true if the specified Object is equal equal to this SimpleUserPrincipal.


hashCode

public int hashCode()
Return a hash code for this SimpleUserPrincipal.



Returns:
     a hash code for this SimpleUserPrincipal.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0