org.apache.jackrabbit.core.security
Class UserPrincipal

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

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
Overrides:
toString in class Object

equals

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


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