Package oracle.security.xs
Class Principal
- java.lang.Object
-
- oracle.security.xs.Principal
-
- All Implemented Interfaces:
java.security.Principal
- Direct Known Subclasses:
ExternalRole,Role,User
public class Principal extends java.lang.Object implements java.security.PrincipalThis class represents aPrincipalentity, such as aRoleor aUser.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDBID()Retrieves theDBIDof thePrincipal.java.lang.StringgetName()Retrieves the name of the Principal.java.lang.StringgetUUID()Retrieves theUUIDof thePrincipal.java.lang.StringtoString()Returns a string representation of thePrincipal.booleanvalidate()Tests whether the object is valid or not.booleanverify(java.lang.String name, java.lang.String uuid, long dbid)Tests whether the object is the same as specified
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Retrieves the name of the Principal.- Specified by:
getNamein interfacejava.security.Principal- Returns:
Principalname
-
getUUID
public java.lang.String getUUID()
Retrieves theUUIDof thePrincipal.- Returns:
- the
UUIDof thePrincipal
-
getDBID
public long getDBID()
Retrieves theDBIDof thePrincipal.- Returns:
- the
DBIDof thePrincipal
-
validate
public boolean validate()
Tests whether the object is valid or not.- Returns:
- true if valid
-
verify
public boolean verify(java.lang.String name, java.lang.String uuid, long dbid)Tests whether the object is the same as specified- Parameters:
name- name of thePrincipalobjectuuid- UUID of thePrincipalobjectdbid- DBID of thePrincipalobject- Returns:
- true if same
-
toString
public java.lang.String toString()
Returns a string representation of thePrincipal.- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the
Principal
-
-