Basic HTML version of Foils prepared May 19 99

Foil 76 Netscape Object Signing Tool -3

From Remarks on Internet and Java Security Basic Information Track Computational Science Course CPS616 -- Spring Semester 1999. by Geoffrey Fox, Mehmet Sen


For the first request, the Privilege Manager asks the Netscape user whether the privilege should be granted, showing the certificate used to sign the code requesting the privilege. Grants are valid for lifetime of the applets.
Example privileges are UniversalFileAccess, UniversalSendMail, UniversalExitAccess, UniversalExecAccess, PrivateRegistryAccess.
  • import netscape.security.PrivilegeManager;
  • import netscape.security.ForbiddenTargetException; . . .
  • try { PrivilegeManager.enablePrivilege("UniversalFileRead");
  • ta.appendText("Read enabled!\n");
  • } catch (ForbiddenTargetException fte) {
  • ta.appendText("Read not enabled.\n");
  • ta.appendText(fte.toString());
  • }



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed May 19 1999