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

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

public class SQLUserPrincipal
extends Object
implements Principal, Serializable

Version:
$Revision: 1.4 $ $Date: 2004/03/10 09:59:26 $
See Also:
Serialized Form

Constructor Summary
SQLUserPrincipal(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

SQLUserPrincipal

public SQLUserPrincipal(String name)
Method Detail

equals

public boolean equals(Object another)
Compares this principal to the specified object. Returns true if the object passed in matches the principal represented by the implementation of this interface.

Specified by:
equals in interface Principal
Parameters:
another - principal to compare with.
Returns:
true if the principal passed in is the same as that encapsulated by this principal, and false otherwise.

toString

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

Specified by:
toString in interface Principal
Returns:
a string representation of this principal.

hashCode

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

Specified by:
hashCode in interface Principal
Returns:
a hashcode for this principal.

getName

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

Specified by:
getName in interface Principal
Returns:
the name of this principal.


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