The Java security manager lets you reduce the damage that your application can do.
Using a security manager, the System Administrator can restrict how an application cooperates with other applications running in the same virtual machine (VM) or elsewhere on the same machine. When you run Derby under a security manager, you can restrict the following:
To take advantage of these powerful controls, first customize one of the template security policies documented here. You can find these template security policies in the Derby distribution in the demo/templates directory. Choose the policy which corresponds to the Derby configuration which you are running:
To customize these files, make the following edits:
file:///Users/me/javadb/lib/Alternatively, you can set the ${derby.install.url} system property (via a -D flag) when you boot the JVM.
This manual does not describe the Java security manager in depth. For more information, see http://docs.oracle.com/javase/8/docs/technotes/guides/security/. In particular, you may want to read the Security Architecture paper (http://docs.oracle.com/javase/8/docs/technotes/guides/security/spec/security-spec.doc.html) and the Default Policy Implementation and Policy File Syntax information (http://docs.oracle.com/javase/8/docs/technotes/guides/security/PolicyFiles.html).