Code example for Permissions

Methods: add

     * Canonical instance of {@link AccessControlContext} with a single {@link RuntimePermission} for 
     * {@code "getClassLoader"} permission. 
    public static final AccessControlContext GET_CLASS_LOADER_CONTEXT;
    static { 
        final Permissions perms = new Permissions();
        perms.add(new RuntimePermission("getClassLoader"));
        GET_CLASS_LOADER_CONTEXT = new AccessControlContext(
                new ProtectionDomain[] { new ProtectionDomain(null, perms) });
Stop searching for code, let great code find you!  Add Codota to your java IDE