org.openorb.orb.csiv2
Class CSIServerJAASModule.CSISimplePrincipal

java.lang.Object
  extended by org.openorb.orb.csiv2.CSIServerJAASModule.CSISimplePrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal
Enclosing class:
CSIServerJAASModule

public class CSIServerJAASModule.CSISimplePrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

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

See Also:
Principal, Subject, Serialized Form

Constructor Summary
CSIServerJAASModule.CSISimplePrincipal(java.lang.String name)
          Create a CSISimplePrincipal with a Simple username.
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares the specified Object with this CSISimplePrincipal for equality.
 java.lang.String getName()
          Return the username for this CSISimplePrincipal.
 int hashCode()
          Return a hash code for this CSISimplePrincipal.
 java.lang.String toString()
          Return a string representation of this CSISimplePrincipal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSIServerJAASModule.CSISimplePrincipal

public CSIServerJAASModule.CSISimplePrincipal(java.lang.String name)
Create a CSISimplePrincipal with a Simple username.

Parameters:
name - the Simple username for this user.
Throws:
java.lang.NullPointerException - if the name is null.
Method Detail

getName

public java.lang.String getName()
Return the username for this CSISimplePrincipal.

Specified by:
getName in interface java.security.Principal
Returns:
The username for this CSISimplePrincipal

toString

public java.lang.String toString()
Return a string representation of this CSISimplePrincipal.

Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object
Returns:
A string representation of this CSISimplePrincipal.

equals

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

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

hashCode

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

Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object
Returns:
A hash code for this CSISimplePrincipal.