jdk/test/sun/security/tools/policytool/i18n.html
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 17427 5e7f51b62b1d
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<html>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
<body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
<applet width=100 height=100 code=i18n.class>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
</applet>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
This is a multi-stage test.  Click on "done" when you have completed
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
reading these instructions.<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
First, policytool will be invoked.  During the entire test,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
make sure that all the buttons, menu options, error messages,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
and output messages are comprehensible
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
(you can read all the english text fine).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
If at any time an exception is thrown, or if any message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
is incomprehensible, then the test failed.  Otherwise,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
the test passed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
Press "Pass" if ... press "Fail" otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
<ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
<li> Pull down the 'File' and 'KeyStore' menus and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
<li> Pull down 'File' menu and select 'View Warning Log'.  Confirm FileNotFound.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
<li> Pull down 'File' menu and select 'New'.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
<li> Pull down 'File' menu and select 'View Warning Log'.  Confirm empty.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
<li> Click on 'Add Policy Entry' and check pop-up window
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
<li> Click on 'Edit Permission' and 'Remove Permission' and check error messages
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
<li> Click on 'Add Permission' and check pop-up window
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
<li> Pull down 'Permission' menu and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
<li> Select 'AWTPermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
<li> Select 'FilePermission', pull down 'Target Name' and 'Actions' and check values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
<li> Select 'NetPermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
<li> Select 'PropertyPermission', pull down 'Actions' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
<li> Select 'ReflectPermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
<li> Select 'RuntimePermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
<li> Select 'SecurityPermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
<li> Select 'SerializablePermission', pull down 'Target Name' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
<li> Select 'SocketPermission', pull down 'Actions' and check values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
<li> Type "www.example.com" for SocketPermission 'TargetName',
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
	and "connect" for 'Actions'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
<li> Click OK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
<li> Check new entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
<li> Click once on new entry
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
<li> Click on 'Edit Permission' and confirm values
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
<li> Select AudioPermission.  Confirm 'Target Name' and 'Actions' cleared.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
<li> Select "play" from Target menu.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
<li> Click OK, confirm changed permission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
<li> Type "hello" for 'CodeBase', click on 'Done', and check error message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
<li> Type "hello" for 'SignedBy', click on 'Done', and check warning message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
<li> Click, on 'Edit Policy Entry' and 'Remove Policy Entry'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
	and check error messages
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
<li> Select policy entry, click on 'Edit Policy Entry', and check pop-up window
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
<li> Select policy entry, click on 'Remove Policy Entry',
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
	and check pop-up window
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
<li> Do not remove the entry, click 'Cancel'.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
<li> Pull down 'File' menu and select 'Exit'.  Confirm Save option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
	Click 'Cancel'.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
<li> Select 'File' menu value 'Save', enter "/tmp/policy1" as the filename,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
	and check status message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
<li> Select 'File' menu value 'New'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
<li> Click 'Add Policy Entry', type in "hello" for 'SignedBy' field,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
	click 'Done'.  Confirm warning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
<li> Select 'File' menu value 'Open' and confirm save option
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
	(do not save changes)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
<li> Type "/tmp/policy1" for the filename and confirm warning message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
<li> Pull down 'File' menu, select 'View Warning Log'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
	and confirm KeyStore alias warning
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
<li> Pull down 'KeyStore' menu and select 'Edit'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
<li> Enter 'foo' as KeyStore URL and check error
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
<li> Using keytool create JKS keystore
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
<li> Enter KeyStore URL but leave other fields empty.  Should succeed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
<li> Pull down 'KeyStore' menu and select 'Edit'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
<li> Confirm URL and Type values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
<li> Enter 'foo' as the provider and check error message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
<li> Enter 'SUN' as the provider.  Should succeed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
<li> Pull down 'KeyStore' menu and select 'Edit'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
<li> Confirm URL, Type, and Provider values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
<li> Enter 'foo' as the password URL and check error message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
<li> Enter URL with bad password and check error message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
<li> Enter URL with good password.  Should succeed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
<li> Pull down 'KeyStore' menu and select 'Edit'
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
<li> Confirm URL, Type, Provider, and Password URL values.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
<li> Click OK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
<li> Pull down 'File' menu and select 'Save As'.  Enter /tmp/policy2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
	Confirm status message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
<li> Pull down 'File' menu and select 'New'.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
<li> Pull down 'File' menu and select 'Open'.  Enter /tmp/policy2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
	Confirm warning message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
<li> Click on 'Add Policy Entry', enter Codebase 'http://foo',
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
	SignedBy 'bar'.  Click on 'Done' and confirm alias warning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
<li> Double-Click on just created policy entry, confirm edit window appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
<li> Change SignedBy to an alias in previously created keystore.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
<li> Click on Done and confirm it worked with no warning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
<li> Double-Click on "SignedBy hello" policy entry and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
	confirm edit window appears.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
<li> Click on Edit/Remove Principal, confirm errors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
<li> Click on 'Add Principal' and check new window.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
<li> Click on 'OK' and confirm error message (no principal name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
<li> Enter valid KeyStore alias as principal name, click OK and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
	confirm status message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
<li> Confirm new principal in Principals list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
<li> Click on 'Done' (creating policy entry), confirm alias warning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
<li> View warning log and confirm X500Principal/KeyStore alias message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
<li> Confirm principal added to policy entry in main window listing.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
<li> Double click on that entry.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
<li> Enter codebase "file:/foobar".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
<li> Click on 'Add Principal'.  Select KerberosPrincipal.  enter 'foo' as name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
	Click OK.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
<li> Confirm new principal in list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
<li> Double-click on new principal.  Select X500Principal.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
	Confirm name cleared.  Type 'foo' as name.  Click OK.  Confirm error.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
	type 'cn=foo' as name.  Click OK.  should succeed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
<li> Confirm changed principal in list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
<li> Click on 'Add Permission', and add any FilePermission.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
<li> Click on 'Done' in Policy Entry window.  Confirm alias warning.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
<li> Confirm entries in main window listing.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
<li> Select 'File' menu value 'Exit'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
<li> Save Changes, confirm status message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
</ol>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
</body>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
</html>