Basic HTML version of Foils prepared 11 March 99

Foil 21 Using Signed Scripts (cont'd)

From Overview of JavaScript II -- From Cookies to Dynamical HTML CPS616 Technologies of the Information Age -- Spring Semester 99. by Geoffrey C. Fox (Tom Scavo)

Using Expanded Privileges
1 Signed scripts may request expanded privileges
2 For example, to access private data: netscape.security.PrivilegeManager. enablePrivilege( "UniversalBrowserRead" );
3 "UniversalBrowserRead" is just one of many target privileges that may be requested
  • "UniversalBrowserAccess" is read and write
  • "UniversalFileRead" allows reading of client files
4 Unsigned Scripts and Signed Scripts can NOT be mixed in same document
5 One access methods in signed scripts from unsigned scripts (in a different layer or window) as long as signed script exports method and using script imports it
  • export signedmethod; in window signedwindow
  • import signedwindow.signedmethod; in another window
  • Use as signedmethod(arguments);

in Table To:


© 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 Thu Mar 11 1999