IBM WebSphere Extended Deployment (XD)TM
Release 6.0

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

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


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

    PrincipalSubject



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


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

Inherited Methods

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

Constructor Detail

SimpleDeptPrincipal

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

Parameters:
_name - the Sample username for this user.


Method Detail

getName

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



Returns:
     the Sample username for this SimpleDeptPrincipal


toString

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



Returns:
     a string representation of this SimpleDeptPrincipal.


equals

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

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


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


hashCode

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



Returns:
     a hash code for this SimpleDeptPrincipal.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0