A method may inquire if a given class was signed by a given principal. Compares two arrays of Principals. This method gets the list of principals at the caller depth and matches it with the principals for the given Class cl. The Class you're asking about callerDepth - Specifies which stack frame to interrogate for privileges. 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. This method gets the list of principals at the caller depth and matches it with the given principal. 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.