org.apache.geronimo.security
Class RealmPrincipal

java.lang.Object
  extended by org.apache.geronimo.security.RealmPrincipal
All Implemented Interfaces:
Serializable, Principal
Direct Known Subclasses:
PrimaryRealmPrincipal

public class RealmPrincipal
extends Object
implements Principal, Serializable

Represents a principal in an realm.

See Also:
Serialized Form

Constructor Summary
RealmPrincipal(String realm, String domain, Principal principal)
           
 
Method Summary
 boolean equals(Object o)
           
 String getLoginDomain()
          Returns the realm that is associated with the principal.
 String getName()
          Returns the name of this principal.
 Principal getPrincipal()
          Returns the principal that is associated with the realm.
 String getRealm()
          Returns the realm that is associated with the principal.
 int hashCode()
           
 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

RealmPrincipal

public RealmPrincipal(String realm,
                      String domain,
                      Principal principal)
Method Detail

equals

public boolean equals(Object o)
Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode 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
Returns:
a string representation of this principal.

getName

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

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

getRealm

public String getRealm()
Returns the realm that is associated with the principal.

Returns:
the realm that is associated with the principal.

getPrincipal

public Principal getPrincipal()
Returns the principal that is associated with the realm.

Returns:
the principal that is associated with the realm.

getLoginDomain

public String getLoginDomain()
Returns the realm that is associated with the principal.

Returns:
the realm that is associated with the principal.


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