IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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

java.lang.Object
  extended by com.ibm.websphere.objectgrid.security.plugins.builtins.SimpleDeptPrincipal
All Implemented Interfaces:
Serializable, Principal

public class SimpleDeptPrincipal
extends Object
implements Principal, Serializable

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

Since:
WAS XD 6.0.1
See Also:
Principal, Subject, Serialized Form

Constructor Summary
SimpleDeptPrincipal(String _name)
          Creates a SimpleDeptPrincipal with a username.
 
Method Summary
 boolean equals(Object o)
          Compares the specified Object with this SimpleDeptPrincipal for equality.
 String getName()
          Gets the user name for this SimpleDeptPrincipal.
 int hashCode()
          Returns a hash code for this SimpleDeptPrincipal.
 String toString()
          Returns a string representation of this SimpleDeptPrincipal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleDeptPrincipal

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

Parameters:
_name - the user name for this user.
Throws:
IllegalArgumentException - if the name is null.
Method Detail

getName

public String getName()
Gets the user name for this SimpleDeptPrincipal.

Specified by:
getName in interface Principal
Returns:
the user name for this SimpleDeptPrincipal

toString

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

Specified by:
toString in interface Principal
Overrides:
toString in class Object
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 SimpleDeptPrincipals have the same user names.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o - Object to be compared for equality with this SimpleDeptPrincipal.
Returns:
true if the specified Object is equal to this SimpleDeptPrincipal.

hashCode

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

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
a hash code for this SimpleDeptPrincipal.

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.