fix(pdf): assinatura visual PAdES em conformidade ITI via SignatureOptions e nome limpo do assinante sem CPF
This commit is contained in:
+5
-2
@@ -1,5 +1,6 @@
|
||||
package br.com.cybercore.signer.ui.view;
|
||||
|
||||
import br.com.cybercore.signer.core.crypto.X509CertificateUtils;
|
||||
import br.com.cybercore.signer.core.domain.CertificateType;
|
||||
import br.com.cybercore.signer.core.domain.ManagedCertificate;
|
||||
import br.com.cybercore.signer.core.pdf.PdfSignatureOptions;
|
||||
@@ -216,8 +217,9 @@ public final class PdfCertificateSignDialog {
|
||||
if (empty || item == null) {
|
||||
setText(null);
|
||||
} else {
|
||||
String holderName = X509CertificateUtils.extractHolderName(item.commonName() != null ? item.commonName() : item.alias());
|
||||
String doc = item.cpf() != null ? " [CPF: " + item.cpf() + "]" : (item.cnpj() != null ? " [CNPJ: " + item.cnpj() + "]" : "");
|
||||
setText(item.commonName() + doc + " (" + item.type() + ")");
|
||||
setText(holderName + doc + " (" + item.type() + ")");
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -228,8 +230,9 @@ public final class PdfCertificateSignDialog {
|
||||
if (empty || item == null) {
|
||||
setText(null);
|
||||
} else {
|
||||
String holderName = X509CertificateUtils.extractHolderName(item.commonName() != null ? item.commonName() : item.alias());
|
||||
String doc = item.cpf() != null ? " [CPF: " + item.cpf() + "]" : (item.cnpj() != null ? " [CNPJ: " + item.cnpj() + "]" : "");
|
||||
setText(item.commonName() + doc + " (" + item.type() + ")");
|
||||
setText(holderName + doc + " (" + item.type() + ")");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user