Last change
on this file since 46 was 46, checked in by ruud, 20 months ago |
Fixed small issues in domaineditor.
|
File size:
382 bytes
|
Rev | Line | |
---|
[46] | 1 | package geniusweb.partiesserver;
|
---|
| 2 |
|
---|
| 3 | import java.security.Permission;
|
---|
| 4 |
|
---|
| 5 | public class SimpleSecurityManager extends SecurityManager {
|
---|
| 6 | @Override
|
---|
| 7 | public void checkPermission(Permission permission) {
|
---|
| 8 | // System.out.println("Checking permission " + permission);
|
---|
| 9 | if (permission.getName().contains("exitVM")) {
|
---|
| 10 | throw new IllegalStateException("System.exit call not allowed");
|
---|
| 11 | }
|
---|
| 12 | }
|
---|
| 13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.