function ColumnsDataTablePDF(){
var 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 '';
}
}
];
return columns;
}
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 += '';
$('div#Dialogo_Check-table').append(html1);
}
}
}
function Dialog_Verificar(id){
document.getElementById("Dialogo_Check").innerHTML = '\
\
';
html1 += ' ';
html1 += 'Nombre del firmante: ';
html1 += ' '+INFO_CHECK.signatures[i]['nameOfTheSigner']+' ';
html1 += '';
html1 += ' ';
html1 += 'Fecha en que se realiza la firma: ';
html1 += ' '+INFO_CHECK.signatures[i]['signedOn']+' ';
html1 += '';
html1 += ' ';
html1 += 'Chequea la integridad de la firma: ';
html1 += ' '+INFO_CHECK.signatures[i]['integrityCheck']+' ';
html1 += '';
html1 += ' ';
html1 += 'El certificado todavía está válido: ';
html1 += ' '+INFO_CHECK.signatures[i]['signerCertificateStillValid']+' ';
html1 += '';
html1 += ' ';
html1 += 'Fecha de fin de validez del certificado: ';
html1 += ' '+INFO_CHECK.signatures[i]['signerCertificateValidFrom']+' ';
html1 += '';
html1 += ' ';
html1 += 'Fecha de fin de validez del certificado: ';
html1 += '' +INFO_CHECK.signatures[i]['signerCertificateValidTo']+' ';
html1 += '';
html1 += ' ';
html1 += 'El certificado es válido en el momento de la firma: ';
html1 += ' '+INFO_CHECK.signatures[i]['signerCertificateValidAtTimeOfSigning']+' ';
html1 += '';
html1 += ' ';
html1 += 'Tipo de firma de archivo PDF: ';
html1 += ' '+INFO_CHECK.signatures[i]['signatureType']+' ';
html1 += '';
html1 += ' ';
html1 += 'Estampilla de tiempo: ';
html1 += ' '+INFO_CHECK.signatures[i]['timeStamp']+' ';
html1 += '';
html1 += ' ';
html1 += 'Razón de la firma: ';
html1 += ' '+INFO_CHECK.signatures[i]['reason']+' ';
html1 += '';
html1 += ' ';
html1 += 'Ubicación donde se realiza la firma: ';
html1 += ' '+INFO_CHECK.signatures[i]['location']+' ';
html1 += '';
html1 += ' ';
html1 += 'Nombre alternativo del firmante: ';
html1 += ' '+INFO_CHECK.signatures[i]['alternativeNameOfTheSigner']+' ';
html1 += '';
html1 += ' ';
html1 += 'La firma abarca todo el documento PDF: ';
html1 += '' +INFO_CHECK.signatures[i]['signatureCoversWholeDocument']+' ';
html1 += '';
html1 += ' ';
html1 += 'Tipo de subfiltro: /adbe.pkcs7.sha1, /adbe.pkcs7.detached: ';
html1 += ' '+INFO_CHECK.signatures[i]['filterSubtype']+' ';
html1 += '';
html1 += ' ';
html1 += 'Sujeto firmante: ';
html1 += '' +INFO_CHECK.signatures[i]['signerCertificateSubject']+' ';
html1 += 'Algoritmo de cifrado: ';
html1 += ' '+INFO_CHECK.signatures[i]['encryptionAlgorithm']+' ';
html1 += '';
html1 += '';
html1 += ' ';
html1 += 'Servicio de estampillado de tiempo: ';
html1 += ' '+INFO_CHECK.signatures[i]['timeStampService']+' ';
html1 += '';
html1 += ' ';
html1 += 'Algoritmo hash (reseña): ';
html1 += ' '+INFO_CHECK.signatures[i]['digestAlgorithm']+' ';
html1 += '';
html1 += ' ';
html1 += 'Certificado verificado contra el repositorio de certificados confiables: ';
html1 += ' '+INFO_CHECK.signatures[i]['certificatesVerifiedAgainstTheKeyStore']+' ';
html1 += '';
html1 += ' ';
html1 += 'Número de revisión del documento PDF: ';
html1 += ' '+INFO_CHECK.signatures[i]['documentRevision']+' ';
html1 += '';
html1 += ' ';
html1 += 'Número total de revisiones del documento PDF: ';
html1 += ' '+INFO_CHECK.signatures[i]['totalDocumentRevisions']+' ';
html1 += '';
html1 += ' ';
html1 += 'Información de contacto del firmante: ';
html1 += '' +INFO_CHECK.signatures[i]['contactInfo']+' ';
html1 += '';
html1 += ' ';
html1 += 'Estampilla de tiempo verificada: ';
html1 += ' '+INFO_CHECK.signatures[i]['timeStampVerified']+' ';
html1 += '';
html1 += ' ';;
html1 += 'Emisor del certificado firmante: ';
html1 += '' +INFO_CHECK.signatures[i]['signerCertificateIssuer']+' ';
html1 += '