ENI (7) ENI Expedient for Sedipualba: Signing content
0. Introduction In a previous post we saw how to create the "Expediente" in ENI format. But the signature of the content was not accepted by Valide After analyzing the ENI format of the "Expedient" generated in Sedipualba that has no problem with Valide there are some differences in the signature: Sedipualba uses the TF03 signatures format (XAdES Enveloped) Sedipualba does not use the binary FirmaBase64 field. Sedipualba uses ds:Signature field instead. So our steps are: Marshall the content(" indice.indiceContenido " attribute) of the "Expedient" into an XML file (for instance contenidoYEAR.xml where YEAR is the year of the resolutions for instance 2022). Use Autofirma and sign the previous XML file in XAdES Enveloped format Get the "xadesEnveloped.xsd" schema from this URL from Liquid Technologies and adapt the schema Get the class eni.xades.enveloped.IndiceContenido Unmarshall the signature obtained by Autofirma into t...