The Sat type exposes the following members.

Methods

  NameDescription
AsciifyOverloaded.
Replace any non-ASCII characters in an XML document with XML numeric character references.
CheckKeyAndCert
Verify that the public key in an X.509 certificate matches the private key.
DefaultDigestAlg
Return default digest (hash) algorithm for the XML document type.
ExtractDigestFromSignature
Extract message digest from the signature (sello) in an XML file.
FixBom
Add UTF-8 byte order mark (BOM) to a file if not already present.
GetCertAsString
Get certificate data as a base64 string.
GetCertExpiry
Get expiry date of the X.509 certificate in ISO time format.
GetCertNumber
Get serial number of the X.509 certificate in "special" SAT format.
GetCertStart
Get start date of the X.509 certificate in ISO time format.
GetKeyAsString
Get private key data as a base64 string suitable for a llaveCertificado element in a Cancelacion XML document
GetXmlAttribute
Extract attribute data from an XML file.
InsertCert
Insert certificate information into an XML document and output to a new file.
InsertCertToBytesOverloaded.
Insert certificate information into an XML document and output to memory.
LastError
Retrieve the last error message.
MakeDigestFromXml
Form message digest of piped string (cadena) from an XML file.
MakePipeStringFromXml
Create the piped string (cadena) from an XML file.
MakeSignatureFromXml
Create signature as a base64 string from data in an XML file ready to be inserted as a sello node.
NewKeyFile
Save keyfile with a new password.
QueryCert
Query an X.509 certificate.
SetXmlNoMatch
Modify the string returned when GetXmlAttribute(String, String, String) fails to find a match.
SignXml
Sign an XML file
SignXmlEx Obsolete.
Sign an XML file with extended options [deprecated].
SignXmlToBytesOverloaded.
Sign XML data writing output to a byte array.
Uuid
Generate a Universally Unique IDentifier (UUID) compliant with RFC 4122.
ValidateXml
Validate an XML file against SAT specifications.
VerifySignature
Verify the signature (sello) in an XML file.
WritePfxFile
Create PFX (PKCS-12) file in PEM format suitable for a Cancelación.
XmlNoMatch
Error message returned when GetXmlAttribute(String, String, String) fails to find a match
XmlReceiptVersion
Find version number of Comprobante element or ID number for other document types.

See Also