This is a multi-stage test. Click on "done" when you have completed
reading these instructions.
First, policytool will be invoked.
Then, follow these steps:
1) Click on the "Add Policy Entry" button in the
main policytool window.
2) Click on the "Add Permission" button in the Policy Entry window.
3) In the Permission window, pull down the "Permission" menu and
select "AWTPermission".
4) In the Permission window, pull down the "Target Name" menu and
select "listenToAllAWTEvents".
5) Click on the "OK" button in the Permission window.
6) Click on the "Done" button in the Policy Entry window.
7) In the main policytool window, pull down the "File" menu and
select "Save As".
8) In the SaveAs window, enter "/tmp/ptool.test" as the file name
and click "OK".
9) cat /tmp/ptool.test
10) check to make sure that the new entry is in the policy file.
11) repeat steps 1-9 for:
AWTPermission: readDisplayPixels
NetPermission: specifyStreamHandler
RuntimePermission: setContextClassLoader,
setSecurityManager,
shutdownHooks,
stopThread
SecurityPermission: printIdentity
In the confirmation dialog pop-up, click "OK".
Exit policytool.
Press "Pass" if ... press "Fail" otherwise.