keyControl.Key

Note:

The content in this help topic pertains to SuiteScript 2.0 and SuiteScript 2.1.

Object Description

Represents the key.

Supported Script Types

Server scripts

For more information, see SuiteScript 2.x Script Types.

Module

N/keyControl Module

Methods and Properties

Key Object Members

Since

2019.2

Syntax

            // Add additional code
...
var key = keyControl.createKey();
            key.file = file.load(422); 
         //id of file containing private key (id_ecdsa or id_rsa)
...
// Add additional code 

          

Related Topics

N/keyControl Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices