Created
November 26, 2013 22:55
-
-
Save smadbe/7667798 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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