43 |
* through the <code>checkPermission()</code> method. |
* through the <code>checkPermission()</code> method. |
44 |
* Manipulates the access control context for code that needs to be executed |
* Manipulates the access control context for code that needs to be executed |
45 |
* the protection domain of the calling class (by explicitly ignoring the |
* the protection domain of the calling class (by explicitly ignoring the |
46 |
* context of the calling code) in the <code>doPriviliged()</code> methods. |
* context of the calling code) in the <code>doPrivileged()</code> methods. |
47 |
* And provides a <code>getContext()</code> method which gives the access |
* And provides a <code>getContext()</code> method which gives the access |
48 |
* control context of the current thread that can be used for checking |
* control context of the current thread that can be used for checking |
49 |
* permissions at a later time and/or in another thread. |
* permissions at a later time and/or in another thread. |
131 |
* @param action the <code>PrivilegedExceptionAction</code> whose |
* @param action the <code>PrivilegedExceptionAction</code> whose |
132 |
* <code>run()</code> should be be called. |
* <code>run()</code> should be be called. |
133 |
* @returns the result of the <code>action.run()</code> method. |
* @returns the result of the <code>action.run()</code> method. |
134 |
* @exception PriviligedActionException wrapped around any exception that |
* @exception PrivilegedActionException wrapped around any exception that |
135 |
* is thrown in the <code>run()</code> method. |
* is thrown in the <code>run()</code> method. |
136 |
*/ |
*/ |
137 |
public static Object doPrivileged(PrivilegedExceptionAction action) |
public static Object doPrivileged(PrivilegedExceptionAction action) |
163 |
* @param context the <code>AccessControlContext</code> whose protection |
* @param context the <code>AccessControlContext</code> whose protection |
164 |
* domains should be added to the protection domain of the calling class. |
* domains should be added to the protection domain of the calling class. |
165 |
* @returns the result of the <code>action.run()</code> method. |
* @returns the result of the <code>action.run()</code> method. |
166 |
* @exception PriviligedActionException wrapped around any exception that |
* @exception PrivilegedActionException wrapped around any exception that |
167 |
* is thrown in the <code>run()</code> method. |
* is thrown in the <code>run()</code> method. |
168 |
*/ |
*/ |
169 |
public static Object doPrivileged(PrivilegedExceptionAction action, |
public static Object doPrivileged(PrivilegedExceptionAction action, |