Verifier.update(options)
Method Description |
Updates the string to be verified against a specified certificate. |
Returns |
void |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2019.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The string to verify. |
|
string |
optional |
Encoding of the string to verify. The default value is UTF-8. |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/crypto/certificate Module Script Samples.
//Add additional code
...
// myVerifier will be certificate.Verifier object
var myVerifier = certificate.createVerifier({
certId: 'custcertificate1',
algorithm: certificate.HashAlg.SHA256
});
myVerifier.update('test');
myVerifier.verify(result);
...
//Add additional code