public class Principal
extends java.lang.Object
implements java.security.Principal
Principal entity, such as a Role or a User.| Constructor and Description |
|---|
Principal()
Constructs a new
Principal. |
Principal(java.lang.String name)
Constructs a new
Principal with the specified name. |
| Modifier and Type | Method and Description |
|---|---|
long |
getDBID()
Retrieves the
DBID of the Principal. |
java.lang.String |
getName()
Retrieves the name of the Principal.
|
java.lang.String |
getUUID()
Retrieves the
UUID of the Principal. |
java.lang.String |
toString()
Returns a string representation of the
Principal. |
boolean |
validate()
Tests whether the object is valid or not.
|
boolean |
verify(java.lang.String name, java.lang.String uuid, long dbid)
Tests whether the object is the same as specified
|
public Principal()
Principal.public Principal(java.lang.String name)
Principal with the specified name.name - name of the Principal objectpublic java.lang.String getName()
getName in interface java.security.PrincipalPrincipal namepublic java.lang.String getUUID()
UUID of the Principal.UUID of the Principalpublic long getDBID()
DBID of the Principal.DBID of the Principalpublic boolean validate()
public boolean verify(java.lang.String name,
java.lang.String uuid,
long dbid)
name - name of the Principal objectuuid - UUID of the Principal objectdbid - DBID of the Principal objectpublic java.lang.String toString()
Principal.toString in interface java.security.PrincipaltoString in class java.lang.ObjectPrincipal