Policy File: Give permission to execute all runtime-protected methods : Grant « Security « Java






Policy File: Give permission to execute all runtime-protected methods

 

    grant codeBase "file:${user.home}/*" {
        // Give permission to execute all runtime-protected methods
        permission java.lang.RuntimePermission "*";
    };

   
  








Related examples in the same category

1.Policy File: Use policytool to create or edit an existing policy file
2.grant all classes loaded from h1.com ability to read \temp\myfile
3.grant ability to create and write c:\temp\myfile
4.grant ability to list files in the user's home directory
5.grant ability to read any file or directory under c:\temp
6.grant ability to delete any file or directory in c:\temp\mydir
7.grant ability to execute (see Runtime.exec()) the file c:\java.exe
8.grant ability to read and write any file in current directory
9.grant ability to read any file under current directory
10.grant ability to read any file
11.grant all classes loaded from h1.com ability to read the 'myprop' system properties
12.grant ability to write the 'myprop' system properties
13.grant ability to read and write the 'myprop' system properties
14.grant ability to read all properties that start with 'myprops.'
15.grant ability to read all system properties
16.grant ability to write all system properties
17.grant ability to read and write all system properties
18.Policy File: Give permission to read all system properties