I’m looking for a simple bit of JavaCode that will configure the security manager to run a script using the javax.scripting frame work in a “sandbox”. By sandbox I mean the following:
– No access to the file systems or sockets should be allowed.
– No access to AWT or anything like that.
– Only explicitly exposed java classes should be available to
the scripting environment.
– Classes exposed to the environment should still be able to
open sockets or access the file system.
– Clever workarounds like reflection should not allow a script
to compromise the sandbox.
