Signer.update(options)
The content in this help topic pertains to SuiteScript 2.0.
Method Description |
Updates the input string to be signed. The string can be encoded. |
Returns |
void |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Governance |
None |
Module |
|
Parent Object |
|
Sibling Object Members |
|
Since |
2019.1 |
Parameters
The options
parameter is a JavaScript object.
Parameter |
Type |
Required / Optional |
Description |
---|---|---|---|
|
string |
required |
The string to update. |
|
string |
optional |
Encoding of the string to sign (for example, UTF-8, ISO_8859_1, ASCII). The default value is UTF-8.
Note:
This must be a text value. Values from encode.Encoding (N/encode Module module) are not accepted. |
Errors
Error Code |
Thrown If |
---|---|
|
The value for is invalid. This must be a text value, such as UTF-8, ISO_8859_1, ASCII. Values from encode.Encoding (N/encode module) are not valid. |
Syntax
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
...
var signer = certificate.createSigner({
certId: 'custcertificate1',
algorithm: certificate.HashAlg.SHA256
});
signer.update("test");
var result = signer.sign();
...
//Add additional code