Check the current principal's privilege for this target. ForbiddenTargetException thrown if access is denied to the Target. A method may inquire if its caller has a given principal. Since this check may need to be wrapped deep inside some other checks, an optional second argument says how many stack frames to skip. An argument of zero refers to the stack frame which invoked this method directly.
Positive arguments increase the number of skipped stack frames.
If you want to interrogate your caller, use a callerDepth of one. A method may inquire if its caller has a given principal. This callerDepth argument is implicitly 1. See above for details. This method returns the principals associated with a given class.