mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-06 14:10:36 +00:00
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();
|
|
}
|
|
}
|
|
}
|