Can I sandbox part of my application?

I have an editor I've written that can load and save modified versions of files using the regular IO facilities.

I'd like to extend my editor by including JPython as a scripting language. However, I want to restrict these scripts to be unable to access the filesystem, the network or System. Is there a way to do this using java.security.*? I've been reading the API docs, and they seem promising, but it would be really useful if there are any examples of how I could implement what I want.

Mark McKay

[525 byte] By [Mark_McKaya] at [2007-9-23]