XmlUtil class

Constructors

XmlUtil()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

canonicalizeXml(String xmlString) → String
defaultUBLExtensionsSignedProperties({required String signingTime, required String certificateHash, required String certificateIssuer, required String certificateSerialNumber}) → XmlDocument
Generates the <xades:SignedProperties> XML structure after signed.
generateHash(String xmlString) → String
generateQrAndSignatureXMl({required String qrString}) → XmlDocument
generateUBLSignExtensionsXml({required String invoiceHash, required String signedPropertiesHash, required String digitalSignature, required String certificateString, required XmlDocument ublSignatureSignedPropertiesXML}) → XmlDocument
Generate a ZATCA-compliant UBLExtensions XML string for the invoice data.
generateZATCAXml(BaseInvoice invoice, Supplier supplier, {required int icv}) → XmlDocument
Generate a ZATCA-compliant XML string for the invoice data.
signedPropertiesHashInput(String signedPropertiesInDocument) → String
Derives the exact byte string ZATCA hashes for <ds:Reference URI="#xadesSignedProperties"> from the <xades:SignedProperties> element as it appears in the submitted invoice.