org.norther.tammi.core.realm
Class PublicIdentity

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

public final class PublicIdentity
extends Object

A public implementation of java.security.Principal identifying an unauthenticated user that is available for use by Realm implementations.

Based on GenericPrincipal in the Apache Jakarta Tomcat project.

Version:
$Id: PublicIdentity.java,v 1.4 2009/12/29 13:10:49 cvsimp Exp $
Author:
Craig R. McClanahan, Ilkka Priha
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.norther.tammi.core.security.IdentifiedPrincipal
IDENTIFIED_PRINCIPAL
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 Object getGroupId()
          Gets the group id of the principal.
 String getName()
           
 Object getUserId()
          Gets the user id of the principal.
 int hashCode()
           
 String toIdentity()
          Returns the identity of the 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

getUserId

public Object getUserId()
Description copied from interface: IdentifiedPrincipal
Gets the user id of the principal.

Specified by:
getUserId in interface IdentifiedPrincipal
Returns:
the user id.

getGroupId

public Object getGroupId()
Description copied from interface: IdentifiedPrincipal
Gets the group id of the principal.

Specified by:
getGroupId in interface IdentifiedPrincipal
Returns:
the group id.

toIdentity

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

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

toString

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


Copyright © 2004 The Norther Organization. All rights reserved.