org.apache.geronimo.security
Class IdentificationPrincipal

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

public class IdentificationPrincipal
extends Object
implements Principal, Serializable

See Also:
Serialized Form

Constructor Summary
IdentificationPrincipal(SubjectId id)
           
 
Method Summary
 boolean equals(Object another)
          Compares this principal to the specified object.
 SubjectId getId()
           
 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

IdentificationPrincipal

public IdentificationPrincipal(SubjectId id)
Method Detail

getId

public SubjectId getId()

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 Object
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
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.


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