certificate.SignedXml
Note:
The content in this help topic pertains to SuiteScript 2.0.
Object Description |
A signed XML string. This object is returned by the certificate.signXml(options) method. |
Supported Script Types |
Server scripts For additional information, see SuiteScript 2.x Script Types. |
Module |
|
Methods and Properties |
|
Since |
2019.1 |
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/crypto/certificate Module Script Samples.
//Add additional code
...
var signedXml = cert.signXml({
algorithm: certificate.HashAlg.SHA256,
certId: 'custcertificate1',
rootTag: 'infNFe',
xmlString: infNFe.getContents()
});
certificate.verifyXMLSignature({
signedXml:signedXml,
rootTag: 'infNFe'
});
...
//Add additional code