Verifier.verify(options)

Note:

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

N/crypto/certificate Module

Parent Object

Parameters

Sibling Object Members

Verifier Object Members

Since

2019.1

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.signature

string

required

The signature to be verified.

options.signatureEncoding

string

optional

The signature’s encoding in Base64 format.

Errors

Error Code

Thrown If

INVALID_SIGNATURE

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.

Related Topics

General Notices