This method of the PolicyEngine Class obtains the principal associated with a specified class. Only fully trusted classes are allowed to call this method.
public static native Principal getPrincipalOfClass(Class c);
Returns the principal associated with the specified class.
c | The class to examine. |
SecurityException if the calling class is not fully trusted.