|
![]() Previous |
![]() Welcome |
These samples must be run from a command prompt.
These samples demonstrate the use of ini files to sign Java code. A cab file containing Java code may be signed with default high, medium, or low permissions using the signcode utility. Developers who wish to sign the file with a set of custom permissions must use an ini file that specifies the permissions requested.
Four ini files have been provided: high.ini, medium.ini, low.ini, and sample.ini. The high, medium, and low ini files list the permissions that will be used for the default cases. These are provided as examples only.
The sample ini file enumerates the complete list of possible permissions that may be specified in an ini file. Note that the enumerated permissions may be mutually exclusive; for example, if you specif the [FullyTrusted] permission, you do not have to specify any of the other permissions. The sample ini file makes a good base to create your own custom ini file by commenting out permissions that are not needed. To comment out a line in an ini file, place a semi-colon in the first character of the line.
For more information on signing Java code with permissions, please refer to the Security section in the Java SDK 2.0 documentation.
cd sample
makecert -n "CN=My Publisher Name" -sv MyKeyName.pvk MyTestCert.cer cert2spc MyTestCert.cer MyTestCert.spc signcode -j javasign.dll -jp sample.ini -spc MyTestCert.spc -v MyKeyName.pvk MyApplet.cab setreg 1 TRUE chkjava MyApplet.cab setreg 1 FALSE
Remarks: This sample requires Internet Explorer 4.0 and the Java SDK 2.0 |
|
|
|