org.norther.tammi.core.realm
Class GenericIdentity
java.lang.Object
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
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.