certificate.createVerifier(options)
Method Description |
Creates the verifier object for verifying signatures of plain strings. |
Returns |
A Parameters object |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
10 units |
Module |
|
Since |
2019.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The script ID of the digital certificate. |
|
string |
required |
The hash algorithm. Set this property using the certificate.HashAlg enum. |
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
...
var myVerifier = certificate.createVerifier({
certId: 'custcertificate1',
algorithm: certificate.HashAlg.SHA256
});
...
//Add additional code