contents   index   previous   next



DSP dspSecurityInit()

syntax:

dsp.dspSecurityInit(secureVar)

where:

secureVar - private storage for the DSP security. The member 'dsp' is preset to the DSP object. Remember, the DSP object can be seen by the running script, but not the secure variable itself.

 

return:

void.

 

description:

The dspSecurityInit function turns on security for a DSP object. This means when the remote client tries to run a script on your machine using DSP, it will be run with your security manager in effect. In the case of DSP, each security function (jseSecurityInit, jseSecurityTerm, and jseSecurityGuard) has an exactly corresponding function, i.e., dspSecurityInit, dspSecurityTerm, and dspSecurityGuard. In the security initialization function, you'll typically select some functions to be allowed, and let all others be vetoed.

 

see:

#link <sedsp>, DSP dspSecurityTerm(), DSP dspSecurityGuard()

 

example:

function iDSP.dspSecurityGuard( conn )

{

   myfunc.setSecurity(jseSecureAllow);

   myotherfunc.setSecurity(jseSecureGuard);

}

 


DSP dspSecurityTerm()