Ontimize Document Management 0.035EN

com.ontimize.dms.jcr.security
Class JcrUserPrincipal

java.lang.Object
  extended by 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.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object getId()
           
 java.lang.String getName()
          
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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

Ontimize Document Management