/[classpath]/classpath/java/security/AccessController.java
ViewVC logotype

Diff of /classpath/java/security/AccessController.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by mark, Tue Jan 22 22:27:00 2002 UTC revision 1.5 by mark, Mon May 6 16:19:20 2002 UTC
# Line 43  package java.security; Line 43  package java.security;
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.
# Line 131  public final class AccessController Line 131  public final class AccessController
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)
# Line 163  public final class AccessController Line 163  public final class AccessController
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,

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26