org.apache.jackrabbit.core.security
Class UserPrincipal
java.lang.Object
org.apache.jackrabbit.core.security.UserPrincipal
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal
public class UserPrincipal
- extends java.lang.Object
- implements java.security.Principal, java.io.Serializable
A UserPrincipal ...
- See Also:
- Serialized Form
|
Constructor Summary |
UserPrincipal(java.lang.String name)
Creates a UserPrincipal with the given name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UserPrincipal
public UserPrincipal(java.lang.String name)
throws java.lang.IllegalArgumentException
- Creates a
UserPrincipal with the given name.
- Parameters:
name - the name of this principal
- Throws:
java.lang.IllegalArgumentException - if name is null.
toString
public java.lang.String toString()
- Specified by:
toString in interface java.security.Principal- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals in interface java.security.Principal- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode in interface java.security.Principal- Overrides:
hashCode in class java.lang.Object
getName
public java.lang.String getName()
-
- Specified by:
getName in interface java.security.Principal
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.