Limiting file access in Java
问题 Problem: In my Java application (not an applet) I wish to limit certain file operations to all classes except a list/group/package of classes that should not be restricted. Specifically, I would like to limit... File reads File writes File creation File deletion ...such that they can only be done within the current working directory for all but the unrestricted classes. SecurityManager attempt: I have tried to implement a subclass of the SecurityManager class that implements this behaviour,