diff -r bf712ea57bb0 -r 378efa95df46 test/jdk/sun/security/tools/policytool/ChangeUI.html --- a/test/jdk/sun/security/tools/policytool/ChangeUI.html Tue Sep 26 10:46:23 2017 +0530 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,85 +0,0 @@ - - - - - - -ATTENTION: policytool now contains no platform-specific codes anymore and -should behaves exactly the same across all platforms. This also means: -
    -
  1. You may only need to test it on one platform
  2. -
  3. You can create policy files for a platform which is different than - the platform you are running policytool on
  4. -
- -This is a multi-stage test. Click on "done" when you have completed -reading these instructions.

- -First, policytool will be invoked.

-
    -
  1. Find (or create) a temporary directory that you have write access to. -(Example: 'C:\foo\tmp' on Windows or '/tmp' on other systems) -
  2. Add new policy entry -
  3. Add permission: -
    -    Type                   Target name     Actions
    -    FilePermission         c:\\foo\\bar    read
    -    
    -
      -
    1. Press OK
    2. -
    3. Confirm the file name warning dialog appears
    4. -
    5. Choose Retain, confirm the permission edit dialog is closed
    6. -
    7. Double click the newly created FilePermission entry to edit it
    8. -
    9. Press OK
    10. -
    11. Confirm the file name warning dialog appears
    12. -
    13. Choose Edit, confirm the permission edit dialog is still opened
    14. -
    15. change Target name to c:\foo\bar
    16. -
    17. Press OK, no warning dialog is shown
    18. -
    -
  4. Add permission: -
    -    Type                   Target name
    -    DelegationPermission   "me@SOMEWHERE" "you@SOMEWHERE"
    -    
    -
      -
    1. Press OK
    2. -
    3. Double click the newly craeted DelegationPermission entry to edit it
    4. -
    5. Confirm the target name is still "me@SOMEWHERE" "you@SOMEWHERE"
    6. -
    7. Press OK
    8. -
    -
  5. Confirm there are 2 entries in the permission list -
  6. Press Done -
  7. Double click the new policy entry to edit it -
  8. Add permission: -
    -    Type
    -    AllPermission
    -    
    -
  9. Add a new Principal, say, KerberosPrincipal with Principal Name as aaa -
  10. Confirm there is 1 entry in the Principals list -
  11. Confirm there are 3 entries in the permission list -
  12. Press cancel -
  13. Double click the policy entry to edit it -
  14. Confirm there are ZERO entries in the Principals list -
  15. Confirm there are 2 entries in the permission list -
  16. Press cancel -
  17. Save as "/tmp/p"
    -(Or use the temporary directory mentioned in Step 0 if it's not '/tmp'. - For example, "C:\foo\tmp\p" on Windows) -
  18. Confirm that the file created in the previous step looks like -
    -/* AUTOMATICALLY GENERATED ON Tue Jul 19 16:27:30 CST 2005*/
    -/* DO NOT EDIT */
    -
    -grant {
    -  permission java.io.FilePermission "c:\\foo\\bar", "read";
    -  permission javax.security.auth.kerberos.DelegationPermission "\"me@SOMEWHERE\" \"you@SOMEWHERE\"";
    -};
    -
    -
-

- -Press "Pass" if ... press "Fail" otherwise.

- - -