I understand that java uses sandboxing to prevent access to the local filesystem. But I know some applets allow the user to select a file on the local system. How do they do that?
it is possible to gain access to a local file system using security policies and signed applets, introduced in Java 1.2
By default you do not have access, however using the policies you can override the defaults and provide a fine level of control, for example you could give a applet write permission to one directory only and deny it read permission, and read permission to a different directory, but not write permission.
Check out the
Code:
SecurityManager
heading in the Java API documentation. -------------------------------------------
There are no onions, only magic
-------------------------------------------
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.