Skip to content

Instantly share code, notes, and snippets.

@smadbe
Created November 26, 2013 22:55
Show Gist options
  • Save smadbe/7667798 to your computer and use it in GitHub Desktop.
Save smadbe/7667798 to your computer and use it in GitHub Desktop.
import java.lang.SecurityManager;
public class NoThreadSecurityManager extends SecurityManager {
public void checkAccess(Thread t)
{
super.checkAccess(t);
throw new SecurityException("New thread not allowed");
}
public void checkAccess(ThreadGroup g) {
super.checkAccess(g);
throw new SecurityException("New thread not allowed");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment