org.apache.geronimo.security
Class PrimaryRealmPrincipal

java.lang.Object
  extended byorg.apache.geronimo.security.RealmPrincipal
      extended byorg.apache.geronimo.security.PrimaryRealmPrincipal
All Implemented Interfaces:
Principal, Serializable

public class PrimaryRealmPrincipal
extends RealmPrincipal

Version:
$Revision: 1.5 $ $Date: 2004/06/13 16:52:53 $
See Also:
Serialized Form

Constructor Summary
PrimaryRealmPrincipal(String realm, Principal principal)
           
 
Method Summary
 boolean equals(Object another)
          Compares this principal to the specified object.
 
Methods inherited from class org.apache.geronimo.security.RealmPrincipal
getId, getName, getPrincipal, getRealm, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrimaryRealmPrincipal

public PrimaryRealmPrincipal(String realm,
                             Principal principal)
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
Overrides:
equals in class RealmPrincipal
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.


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