org.norther.tammi.core.realm
Class GenericIdentity

java.lang.Object
  extended by org.norther.tammi.core.realm.GenericIdentity
All Implemented Interfaces:
Serializable, Cloneable, Principal, IdentifiedPrincipal

public final class GenericIdentity
extends Object
implements IdentifiedPrincipal, Serializable, Cloneable

Generic implementation of java.security.Principal identifying an unauthenticated user that is available for use by RealmMBean implementations.

Based on GenericPrincipal in the Apache Jakarta Tomcat project.

Author:
Craig R. McClanahan, Ilkka Priha
See Also:
Serialized Form

Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 String getName()
           
 int hashCode()
           
 String toIdentity()
          Returns the identity of this principal.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object other)
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

getName

public String getName()
Specified by:
getName in interface Principal

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object

toIdentity

public String toIdentity()
Description copied from interface: IdentifiedPrincipal
Returns the identity of this principal.

Specified by:
toIdentity in interface IdentifiedPrincipal
Returns:
the identity.


Copyright © 2004 The Norther Organization. All rights reserved.