org.apache.geronimo.security
Class DomainPrincipal

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

public class DomainPrincipal
extends Object
implements Principal, Serializable

Represents a principal in an realm.

See Also:
Serialized Form

Constructor Summary
DomainPrincipal(String domain, Principal principal)
           
 
Method Summary
 boolean equals(Object o)
           
 String getDomain()
          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.
 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

DomainPrincipal

public DomainPrincipal(String domain,
                       Principal principal)
Method Detail

equals

public boolean equals(Object o)
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
Returns:
a string representation of this principal.

hashCode

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

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
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.

getPrincipal

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

Returns:
the principal that is associated with the realm.

getDomain

public String getDomain()
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.