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 |
|
Parent Object |
|
Methods and Properties |
|
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