certificate.SignedXml
Object Description |
Encapsulates an XML string that has been digitally signed. 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
...
// signedXml is a certificate.SignedXml object
var signedXml = certificate.signXml({
algorithm: certificate.HashAlg.SHA256,
certId: 'custcertificate1',
rootTag: 'infNFe',
xmlString: infNFe.getContents()
});
// You can use the certificate.SignedXml object to verify the signature
certificate.verifyXMLSignature({
signedXml:signedXml,
rootTag: 'infNFe'
});
...
//Add additional code