Verifier.verify(options)
The content in this help topic pertains to SuiteScript 2.0.
Method Description |
Verifies a string against a provided signature using a specified certificate. You can create a verifier object using the certificate.createVerifier(options) method. |
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 signature to be verified. |
|
string |
optional |
The signature’s encoding in Base64 format. |
Errors
Error Code |
Thrown If |
---|---|
|
Signature is not verified. This can occur if the certificate or hash algorithm is not correct in the Verifier object or the signature is not valid for the supplied string. |