XML signature, including Electronic Invoice (NF-e).
See HSM technical documentation about operating details, specifications used, licenses e module trade name.
XML signature, including Electronic Invoice (NF-e).
More...
|
| 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.
|
| |
◆ signXML() [1/3]
| 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.
- Parameters
-
| 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. |
- Return
- Array of original XML bytes digitally signed in the specified format.
- Exceptions
-
| TacException | Throws exception in case of signature errors |
◆ signXML() [2/3]
| 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.
- Parameters
-
| 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. |
- Return
- Array of bytes containing the original digitally signed XML document in the specified format.
- Exceptions
-
| TacException | Throws exception in case of signature errors |
◆ signXML() [3/3]
| 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.
- Parameters
-
| 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 | |
- Return
- Exceptions
-
| TacException | Throws exception in case of signature errors |