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

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

public class GeronimoGroupPrincipal
extends Object
implements Principal, Serializable

A principal that represents a group 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
GeronimoGroupPrincipal(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

GeronimoGroupPrincipal

public GeronimoGroupPrincipal(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 GeronimoGroupPrincipal 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.