title: Restrict Certain Java Code in a Plug-in
body: <p>I am creating an application which uses the <a href="http://jpf.sourceforge.net/" rel="nofollow noreferrer">Java Plugin Framework</a> to load plug-ins and integrate them into the program.</p>
  
  <p>My question is: Is there any way to restrict certain operations (such as starting a new process) in the plug-ins? What I have in mind is something like Java WebStart, i.e when the application wants to access the FileSytem, the user is prompted whether or not to allow the action.</p>
  
  <p>I was thinking of maybe creating a security manager and, if so, how can I do that?</p>