FileDocCategorySizeDatePackage
AppservAccessController.javaAPI DocGlassfish v2 API3123Fri May 04 22:32:04 BST 2007com.sun.enterprise.security

AppservAccessController

public final class AppservAccessController extends Object
This class provides an optimization for some methods in java.security.AccessController.
author
Shing Wai Chan

Fields Summary
private static boolean
isSecMgrOff
Constructors Summary
private AppservAccessController()


      
    
Methods Summary
public static java.lang.ObjectdoPrivileged(java.security.PrivilegedAction action)

        if (isSecMgrOff) {
            return action.run();
        } else {
            return AccessController.doPrivileged(action);
        }
    
public static java.lang.ObjectdoPrivileged(java.security.PrivilegedExceptionAction action)


        if (isSecMgrOff) {
            try {
                return action.run();       
            } catch(Exception e) {
                throw new PrivilegedActionException(e);
            }
        } else {
            return AccessController.doPrivileged(action);
        }