https.createSecureString(options)
Method Description |
Creates and returns an https.SecureString. The input for the secure string can be a GUID or a secret. For more information about secrets, see Secrets Management. |
Returns |
|
Supported Script Types |
Server scripts For more information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Since |
2015.2 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
Since |
---|---|---|---|---|
|
string |
required |
The string to convert to a https.SecureString. The following patterns are accepted:
|
Release 15 Version 2 |
|
optional |
Identifies the encoding that the input string uses. The default value is |
Release 15 Version 2 |
Syntax
The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/https Module Script Samples.
// Add additional code
...
var passwordGuid = '{284CFB2D225B1D76FB94D150207E49DF}';
var secureToken = https.createSecureString({ // secureToken is an https.SecureString
input: passwordGuid
});
...
// Add additional code