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

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.input

string

required

The string to verify.

options.inputEncoding

string

optional

Encoding of the string to verify. The default value is UTF-8.

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
...
// 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 

            

Related Topics

General Notices