function InfoContentVerificar(id){ for (var i = 0; i < INFO_CHECK.signatures.length; i++) { if (parseInt(INFO_CHECK.signatures[i]['documentRevision']) == parseInt(id)){ var html1 = ""; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += ''; html1 += '';; html1 += '
Nombre del firmante: '+INFO_CHECK.signatures[i]['nameOfTheSigner']+'
Fecha en que se realiza la firma: '+INFO_CHECK.signatures[i]['signedOn']+'
Chequea la integridad de la firma: '+INFO_CHECK.signatures[i]['integrityCheck']+'
El certificado todavía está válido: '+INFO_CHECK.signatures[i]['signerCertificateStillValid']+'
Fecha de fin de validez del certificado: '+INFO_CHECK.signatures[i]['signerCertificateValidFrom']+'
Fecha de fin de validez del certificado: ' +INFO_CHECK.signatures[i]['signerCertificateValidTo']+'
El certificado es válido en el momento de la firma: '+INFO_CHECK.signatures[i]['signerCertificateValidAtTimeOfSigning']+'
Tipo de firma de archivo PDF: '+INFO_CHECK.signatures[i]['signatureType']+'
Estampilla de tiempo: '+INFO_CHECK.signatures[i]['timeStamp']+'
Razón de la firma: '+INFO_CHECK.signatures[i]['reason']+'
Ubicación donde se realiza la firma: '+INFO_CHECK.signatures[i]['location']+'
Nombre alternativo del firmante: '+INFO_CHECK.signatures[i]['alternativeNameOfTheSigner']+'
La firma abarca todo el documento PDF: ' +INFO_CHECK.signatures[i]['signatureCoversWholeDocument']+'
Tipo de subfiltro: /adbe.pkcs7.sha1, /adbe.pkcs7.detached: '+INFO_CHECK.signatures[i]['filterSubtype']+'
Sujeto firmante: ' +INFO_CHECK.signatures[i]['signerCertificateSubject']+'
Algoritmo de cifrado: '+INFO_CHECK.signatures[i]['encryptionAlgorithm']+'
Servicio de estampillado de tiempo: '+INFO_CHECK.signatures[i]['timeStampService']+'
Algoritmo hash (reseña): '+INFO_CHECK.signatures[i]['digestAlgorithm']+'
Certificado verificado contra el repositorio de certificados confiables: '+INFO_CHECK.signatures[i]['certificatesVerifiedAgainstTheKeyStore']+'
Número de revisión del documento PDF: '+INFO_CHECK.signatures[i]['documentRevision']+'
Número total de revisiones del documento PDF: '+INFO_CHECK.signatures[i]['totalDocumentRevisions']+'
Información de contacto del firmante: ' +INFO_CHECK.signatures[i]['contactInfo']+'
Estampilla de tiempo verificada: '+INFO_CHECK.signatures[i]['timeStampVerified']+'
Emisor del certificado firmante: ' +INFO_CHECK.signatures[i]['signerCertificateIssuer']+'
'; html1 += '
'; $('div#Dialogo_Check-table').append(html1); } } } function Dialog_Verificar(id){ document.getElementById("Dialogo_Check").innerHTML = '\ \ '; InfoContentVerificar(id); } function DataTableVerificar(response){ var table = $('#myckeckJson').DataTable({ language: { "lengthMenu": "Mostrar _MENU_ registros", "zeroRecords": "No hay resultados - Disculpe", "info": "Mostrando pagina _PAGE_ de _PAGES_", "search": "Buscar:", "infoEmpty": "No records available", "infoFiltered": "(filtered from _MAX_ total records)" }, columnDefs: [ {"className": "dt-center", "targets": "_all"} ], order: [[ 1, 'desc' ]], data: response.signatures, columns: [ {title: "Nombre del firmante", data: "nameOfTheSigner" }, {title: "Fecha en que se realiza la firma", data: "signedOn"}, {title: "Chequea la integridad de la firma", data: "integrityCheck"}, {title: "El certificado todavía está válido", data: "signerCertificateStillValid"}, {title: "Fecha de inicio de validez del certificado", data: "signerCertificateValidFrom"}, {title: "Fecha de fin de validez del certificado", data: "signerCertificateValidTo"}, {title: "El certificado es válido en el momento de la firma", data: "signerCertificateValidAtTimeOfSigning"}, {title: "Tipo de firma de archivo PDF", data: "signatureType"}, {title: "Estampilla de tiempo", data: "timeStamp"}, {title: " Razón de la firma", data: "reason"}, {title: "Ubicación donde se realiza la firma", data: "location"}, {title: "Nombre alternativo del firmante", data: "alternativeNameOfTheSigner"}, {title: "La firma abarca todo el documento PDF", data: "signatureCoversWholeDocument"}, {title: "Tipo de subfiltro: /adbe.pkcs7.sha1, /adbe.pkcs7.detached", data: "filterSubtype"}, {title: "Sujeto firmante", data: "signerCertificateSubject"}, {title: "Algoritmo de cifrado", data: "encryptionAlgorithm"}, {title: "Servicio de estampillado de tiempo", data: "timeStampService"}, {title: "Algoritmo hash (reseña)", data: "digestAlgorithm"}, {title: "Certificado verificado contra el repositorio de certificados confiables", data: "certificatesVerifiedAgainstTheKeyStore"}, {title: "Número de revisión del documento PDF", data: "documentRevision"}, {title: "Número total de revisiones del documento PDF", data: "totalDocumentRevisions"}, {title: "Información de contacto del firmante", data: "contactInfo", style:"width: 2px;"}, {title: "Estampilla de tiempo verificada", data: "timeStampVerified"}, {title: "Emisor del certificado firmante", data: "signerCertificateIssuer"}, {title:"Información", data: function(event){ return ''; } } ], dom: 'Bfrtip', columnDefs: [ { "targets": [ 2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23 ], "visible": false, //"searchable": false }, ], buttons: [ { extend: 'pageLength', text: 'Mostrar Filas', titleAttr: 'Mostrar Filas', }, { extend: 'print', text: 'Imprimir', title: 'Contenido de la Firma', message: 'Datos de la Firma', titleAttr: 'Imprimir', exportOptions: { columns: [ 0,1,2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23] } }, { extend: 'excelHtml5', text: 'XLXS', title: 'Contenido de la Firma', titleAttr: 'Excel', message: 'Datos de la Firma', exportOptions: { columns: [ 0,1,2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23] } }, { extend: 'csvHtml5', text: 'CSV', title: 'Contenido de la Firma', titleAttr: 'CSV', exportOptions: { columns: [ 0,1,2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23] } }, { extend: 'pdfHtml5', text: 'PDF', titleAttr: 'PDF', title: 'Contenido de la Firma', download: 'open', customize: function (doc){ doc.defaultStyle.fontSize = 3; doc.styles.tableHeader.fontSize = 4; doc.styles.tableHeader.fillColor = "#0085a1"; }, //orientation: 'landscape', pageSize: 'A3', exportOptions: { columns: [ 0,1,2,3,4,5,6,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23] } } ] }); return table; }