Availability: |
| |||
Class properties: | EQUAL, NO_SUBSET, PROPER_SUBSET, SIGNED_APPLET_DBNAME, TEMP_FILENAME, theDebugLevel | |||
Class methods: | checkPrivilegeEnabled(), checkPrivilegeGranted(), disablePrivilege(), enablePrivilege(), enableTarget(), getMyPrincipals(), getPrivilegeManager(), getSystemPrincipal(), revertPrivilege() | |||
Object methods: | disablePrivilege(), enablePrivilege(), getPrivilegeTableFromStack() |
Because the Netscape security model is based on the Java security model, the Netscape browser requests its privileges through the Java mechanisms. These are encapsulated in a class that you can access from inside JavaScript.
The downside of this is that there is no meaningful value returned when the request is made. If the request for a privilege is denied, the error causes a Java exception, which is difficult to trap from JavaScript. It is possible that more recent browser versions will support an exception-handling mechanism.
Prev | Home | Next |
netscape.security | Up | new |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |