Code example for Permission

Methods: getActions

0
                throw new SecurityException();
            } else if (dflt != null) {
                dflt.checkPermission(perm);
            } 
        } 
 
        @Override 
        public void checkPermission(Permission perm, Object ctx) {
            if (perm instanceof FilePermission) {
                System.out.println(perm.getActions());
                throw new SecurityException();
            } else if (dflt != null) {
                dflt.checkPermission(perm, ctx);
            } 
        } 
 
    } 
}