5f7b6dfb6c
Reviewed-by: anthony
12 lines
343 B
Java
12 lines
343 B
Java
import sun.security.util.SecurityConstants;
|
|
import java.security.Permission;
|
|
|
|
public class CustomSecurityManager extends SecurityManager {
|
|
@Override
|
|
public void checkPermission(Permission perm) {
|
|
if (perm.implies(SecurityConstants.AWT.TOPLEVEL_WINDOW_PERMISSION)) {
|
|
throw new SecurityException();
|
|
}
|
|
}
|
|
}
|