org.apache.geronimo.security.realm.providers
Class GeronimoUserPrincipal

java.lang.Object
  extended by org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal
All Implemented Interfaces:
Serializable, Principal, GeronimoCallerPrincipal

public class GeronimoUserPrincipal
extends Object
implements Principal, Serializable, GeronimoCallerPrincipal

A principal that represents a user for the login modules distributed with Geronimo. Custom login modules may use this if convenient or provide their own Principal implementations -- it doesn't matter.

See Also:
Serialized Form

Constructor Summary
GeronimoUserPrincipal(String name)
           
 
Method Summary
 boolean equals(Object another)
          Compares this principal to the specified object.
 String getName()
          Returns the name of this principal.
 int hashCode()
          Returns a hashcode for this principal.
 String toString()
          Returns a string representation of this principal.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeronimoUserPrincipal

public GeronimoUserPrincipal(String name)
Method Detail

equals

public boolean equals(Object another)
Compares this principal to the specified object. Returns true if the object passed in is a GeronimoUserPrincipal with the same name.

Specified by:
equals in interface Principal
Overrides:
equals in class Object

toString

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

Specified by:
toString in interface Principal
Overrides:
toString in class Object

hashCode

public int hashCode()
Returns a hashcode for this principal.

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

getName

public String getName()
Returns the name of this principal.

Specified by:
getName in interface Principal


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.