Key.password

Property Description

The password of the key.

Either the GUID or API secret script ID for working with passwords is accepted. You can create a GUID using Form.addCredentialField(options). For more information about API Secrets, see Secrets Management

Type

String (write-only)

Module

N/keyControl Module

Parent Object

keyControl.Key

Supported Script Types

Server scripts

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

Methods and Properties

Key Object Members

Since

2019.2

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/keyControl Module Script Samples.

            // Add additional code
...
var passwordToken = request.parameters.custfield_password;
     var pem = file.load({id:422});
     var key = keyControl.createKey();
     key.file = pem;
     key.name = 'Test';
     key.password = custsecret_apisecret;
...
// Add additional code 

          

Related Topics

General Notices