Lines Matching defs:context

45  * <li>to obtain a "snapshot" of the current calling context so
46 * access-control decisions from a different context can be made with
47 * respect to the saved context. </ul>
83 * if (a context was specified in the call to doPrivileged)
84 * context.checkPermission(permission)
89 * // Next, check the context inherited when the thread was created.
92 * // "inherited" context.
102 * call without a context argument (see below for information about a
103 * context argument). If that caller's domain has the
185 * within the context of the currently executing thread.
186 * Sometimes a security check that should be made within a given context
188 * <i>different</i> context (for example, from within a worker thread).
192 * of the current calling context, and places
204 * that makes access decisions based on the context <i>it</i> encapsulates,
206 * Code within a different context can thus call that method on the
217 * to check the context against. In these cases you can use the
218 * doPrivileged method that takes a context:
227 * // context have the desired permission.
318 * @param context an <i>access control context</i>
321 * the specified action. If the context is
334 AccessControlContext context);
439 * @param context an <i>access control context</i>
442 * the specified action. If the context is
459 AccessControlContext context)
463 * Returns the AccessControl context. i.e., it gets
468 * @return the access control context based on the current stack or
475 * Returns the "inherited" AccessControl context. This is the context
483 * This method takes a "snapshot" of the current calling context, which
485 * and places it in an AccessControlContext object. This context may then
490 * @return the AccessControlContext based on the current context.
534 // if context is null, we had privileged system code on the stack.
549 debug.println("domain (context is null)");