com.ontimize.dms.jcr.security
Class JcrUserPrincipal
java.lang.Object
com.ontimize.dms.jcr.security.JcrUserPrincipal
- All Implemented Interfaces:
- java.security.Principal
public class JcrUserPrincipal
- extends java.lang.Object
- implements java.security.Principal
|
Constructor Summary |
JcrUserPrincipal(java.lang.String name,
java.lang.Object id)
Creates a UserPrincipal with the given name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JcrUserPrincipal
public JcrUserPrincipal(java.lang.String name,
java.lang.Object id)
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
getId
public java.lang.Object getId()
getName
public java.lang.String getName()
-
- Specified by:
getName in interface java.security.Principal