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

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

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.

Version:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
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

toString

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

Specified by:
toString in interface Principal

hashCode

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

Specified by:
hashCode in interface Principal

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.