| ||||||||||||||||||
SummaryDefines security information for an object or script. | ||||||||||||||||||
Syntaxtypedef struct JSPrincipals { char *codebase; void *(*getPrincipalArray)(JSContext *cx, struct JSPrincipals *); JSBool (*globalPrivilegesEnabled)(JSContext *cx, struct JSPrincipals *); uintN refcount; void (*destroy)(JSContext *cx, struct JSPrincipals *); } JSPrincipals;
| ||||||||||||||||||
DescriptionJSPrincipals is a structure that defines the connection to security data for an object or script. Security data is defined independently of the JS engine, but is passed to the engine through the JSPrincipals structure. This structure is passed as an argument to versions of API calls that compile and evaluate scripts and functions that depend on a security model. Some examples of security-enhanced API call are JS_CompileScriptForPrincipals , JS_CompileFunctionForPrincipals , and JS_EvaluateScriptForPrincipals .
| ||||||||||||||||||
See Also
|