XML Signature, including Electronic Invoice (NF-e)
See HSM technical documentation
Functions | |
| byte[] | signXML (byte bHashMode, int nFlags, String strKeyId, String strCertId, byte[] baUnsignedXml, byte[] baFilter) throws TacException |
| Digitally signs an XML document using the W3C XML digital signature standards. | |
| byte[] | signXML (String strPrivKeyName, int nHashAlg, String strCertId, byte[] baUnsignedXml, byte[] baFilter) throws TacException |
| Digitally signs an XML document using the W3C XML digital signature standards. | |
| byte[] | signXML (byte[] hKey, byte[] hHash, String strCertId, int nUnsignedXml, byte[] baUnsignedXml, int[] naSignedXmlSize, int nFilterSize, byte[] baFilter) throws TacException |
| Digitally signs an XML document using the W3C XML digital signature standards. | |
| byte[] signXML | ( | byte | bHashMode, |
| int | nFlags, | ||
| String | strKeyId, | ||
| String | strCertId, | ||
| byte[] | baUnsignedXml, | ||
| byte[] | baFilter ) throws TacException |
Digitally signs an XML document using the W3C XML digital signature standards.
| bHashMode | Type of hash used in the signature. The values in the table below are accepted.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| nFlags | Flags containing the subscription options. The table below is accepted.
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| strKeyId | Name of the private key in the HSM. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| strCertId | Name of the certificate in HSM. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| baUnsignedXml | XML to be signed. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| baFilter | Filter for digitally signing parts of the XML document. Use of the filter is optional. See Using XML filters. |
| TacException | Throws exception in case of signature errors |
| byte[] signXML | ( | String | strPrivKeyName, |
| int | nHashAlg, | ||
| String | strCertId, | ||
| byte[] | baUnsignedXml, | ||
| byte[] | baFilter ) throws TacException |
Digitally signs an XML document using the W3C XML digital signature standards.
It receives the parameters in byte array format.
| strPrivKeyName | Identifier internal to the HSM referring to the key to be used for signing the XML document. | ||||||||
| nHashAlg | Hash algorithm used. The table below is accepted.
| ||||||||
| strCertId | Identifier internal to the HSM referring to the digital certificate to be used for signing the XML document. | ||||||||
| baUnsignedXml | Parameter containing the XML to be signed. | ||||||||
| baFilter | Filter for digitally signing parts of the XML document. Use of the filter is optional. See Using XML filters. |
| TacException | Throws exception in case of signature errors |
| byte[] signXML | ( | byte[] | hKey, |
| byte[] | hHash, | ||
| String | strCertId, | ||
| int | nUnsignedXml, | ||
| byte[] | baUnsignedXml, | ||
| int[] | naSignedXmlSize, | ||
| int | nFilterSize, | ||
| byte[] | baFilter ) throws TacException |
Digitally signs an XML document using the W3C XML digital signature standards.
Receives parameters in string format.
| hKey | Identifier internal to the HSM referring to the key to be used for signing the XML document. |
| hHash | Hash algorithm used. |
| strCertId | Identifier internal to the HSM referring to the digital certificate to be used for signing the XML document. |
| nUnsignedXml | Parameter containing the XML to be signed. |
| baUnsignedXml | |
| naSignedXmlSize | |
| nFilterSize | |
| baFilter |
| TacException | Throws exception in case of signature errors |