Click or drag to resize

Sat Class

SAT-related methods.
Inheritance Hierarchy
SystemObject
  FirmaSATSat

Namespace: FirmaSAT
Assembly: diFirmaSatNet (in diFirmaSatNet.dll) Version: 10.70.0.38178 (10.70.0.0)
Syntax
public class Sat

The Sat type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCode exampleAsciify(Byte) Replace any non-ASCII characters in an XML document (as a byte array) with XML character references (where permitted).
Public methodStatic memberCode exampleAsciify(String) Replace non-ASCII characters in an XML document with XML numeric character references (where permitted).
Public methodStatic memberCode exampleCheckKeyAndCert Verify that the public key in an X.509 certificate matches the private key.
Public methodStatic memberCode exampleDefaultDigestAlg Return default digest (hash) algorithm for the XML document type.
Public methodStatic memberCode exampleExtractDigestFromSignature Extract message digest from the signature (sello) in an XML file.
Public methodStatic memberCode exampleFixBom Add UTF-8 byte order mark (BOM) to a file if not already present.
Public methodStatic memberCode exampleGetCertAsString Get certificate data as a base64 string.
Public methodStatic memberCode exampleGetCertExpiry Get expiry date of the X.509 certificate in ISO time format.
Public methodStatic memberCode exampleGetCertNumber Get serial number of the X.509 certificate in "special" SAT format.
Public methodStatic memberCode exampleGetCertStart Get start date of the X.509 certificate in ISO time format.
Public methodStatic memberCode exampleGetKeyAsString Get private key data as a base64 string suitable for a llaveCertificado element in a Cancelacion XML document
Public methodStatic memberCode exampleGetXmlAttribute Extract attribute data from an XML file.
Public methodStatic memberCode exampleInsertCert Insert certificate information into an XML document and output to a new file.
Public methodStatic memberCode exampleInsertCertToBytes(Byte, String) Insert certificate information into an XML document (as a byte array) and output to memory.
Public methodStatic memberCode exampleInsertCertToBytes(String, String) Insert certificate information into an XML document (as a file) and output to memory.
Public methodStatic memberCode exampleLastError Retrieve the last error message.
Public methodStatic memberCode exampleMakeDigestFromXml Form message digest of piped string (cadena) from an XML file.
Public methodStatic memberCode exampleMakePipeStringFromXml Create the piped string (cadena) from an XML file.
Public methodStatic memberCode exampleMakeSignatureFromXml Create signature as a base64 string from data in an XML file ready to be inserted as a sello node.
Public methodStatic memberCode exampleNewKeyFile Save keyfile with a new password.
Public methodStatic memberQueryCert Query an X.509 certificate.
Public methodStatic memberCode exampleSetXmlNoMatch Modify the string returned when GetXmlAttribute(String, String, String) fails to find a match.
Public methodStatic memberCode exampleSignXml Sign an XML file
Public methodStatic memberCode exampleSignXmlExObsolete.
Sign an XML file with extended options [deprecated].
Public methodStatic memberCode exampleSignXmlToBytes(Byte, String, String, String, SignOptions) Sign XML data writing output to a byte array.
Public methodStatic memberCode exampleSignXmlToBytes(String, String, String, String, SignOptions) Sign XML file writing output to a byte array.
Public methodStatic memberCode exampleUuid Generate a Universally Unique IDentifier (UUID) compliant with RFC 4122.
Public methodStatic memberCode exampleValidateXml Validate an XML file against SAT specifications.
Public methodStatic memberCode exampleVerifySignature Verify the signature (sello) in an XML file.
Public methodStatic memberCode exampleWritePfxFile Create PFX (PKCS-12) file in PEM format suitable for a Cancelación.
Public methodStatic memberCode exampleXmlNoMatch Error message returned when GetXmlAttribute(String, String, String) fails to find a match
Public methodStatic memberCode exampleXmlReceiptVersion Find version number of Comprobante element or ID number for other document types.
Top
See Also