From 596818361623dbe537536683146c3df2a2fcdbb2 Mon Sep 17 00:00:00 2001 From: Thomas <> Date: Thu, 12 Jan 2023 15:23:34 +0100 Subject: fix(sigblock): add mapping to support old RFC2255 names in signature-profile configurations Issue: #70 Add a mapping table into DNUtils to map specific RDN names to old format --- .../test/stamping/CertificateAndRequestParameterResolverTest.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'pdf-as-lib/src/test/java/at/gv/egiz') diff --git a/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/stamping/CertificateAndRequestParameterResolverTest.java b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/stamping/CertificateAndRequestParameterResolverTest.java index 68222881..805f87b9 100644 --- a/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/stamping/CertificateAndRequestParameterResolverTest.java +++ b/pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/stamping/CertificateAndRequestParameterResolverTest.java @@ -12,19 +12,15 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -import com.google.gson.annotations.SerializedName; - -import at.gv.egiz.pdfas.common.settings.DefaultSignatureProfileSettings; import at.gv.egiz.pdfas.common.settings.ISettings; import at.gv.egiz.pdfas.common.settings.SignatureProfileSettings; import at.gv.egiz.pdfas.lib.api.sign.SignParameter; import at.gv.egiz.pdfas.lib.impl.SignParameterImpl; -import at.gv.egiz.pdfas.lib.impl.stamping.CertificateAndRequestParameterResolver; import at.gv.egiz.pdfas.lib.impl.stamping.ValueResolver; import at.gv.egiz.pdfas.lib.impl.status.ICertificateProvider; import at.gv.egiz.pdfas.lib.impl.status.OperationStatus; import iaik.x509.X509Certificate; - + @RunWith(JUnit4.class) public class CertificateAndRequestParameterResolverTest { @@ -50,7 +46,7 @@ public class CertificateAndRequestParameterResolverTest { String result = resolver.resolve("", "${subject.T != null ? (subject.T + \" \") : \"\"}${subject.CN}", sigProfileSetting); - assertEquals("wrong signer Name", "Hermann Peyerl", result); + assertEquals("wrong signer Name", "A.Univ.Prof.DDr. Hermann Peyerl", result); } -- cgit v1.2.3