Demonstrates how to create a Java SecurityManager that can be enabled and disabled programatically on specific threads.