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

N/crypto/certificate Module

Since

2019.1

Parameters

Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.certId

string

required

The script ID of the digital certificate.

options.algorithm

string

required

The hash algorithm.

Set this property using the certificate.HashAlg enum.

Syntax

Important:

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 

            

Related Topics

General Notices