org.apache.jackrabbit.core.security
Class UserPrincipal

java.lang.Object
  extended byorg.apache.jackrabbit.core.security.UserPrincipal
All Implemented Interfaces:
Principal, Serializable

public class UserPrincipal
extends Object
implements Principal, Serializable

A UserPrincipal ...

See Also:
Serialized Form

Constructor Summary
UserPrincipal(String name)
          Creates a UserPrincipal with the given name.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
          
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserPrincipal

public UserPrincipal(String name)
              throws IllegalArgumentException
Creates a UserPrincipal with the given name.

Parameters:
name - the name of this principal
Throws:
IllegalArgumentException - if name is null.
Method Detail

toString

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

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal

getName

public String getName()

Specified by:
getName in interface Principal


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.