diff options
author | Thomas <> | 2023-01-12 15:23:34 +0100 |
---|---|---|
committer | Thomas <> | 2023-01-12 15:25:44 +0100 |
commit | 596818361623dbe537536683146c3df2a2fcdbb2 (patch) | |
tree | aad215536448225dae7e88777f70076300e7f771 /pdf-as-lib/src | |
parent | c14096c5a87dabcc7483c5ff7bcd7014ee3a0319 (diff) | |
download | pdf-as-4-596818361623dbe537536683146c3df2a2fcdbb2.tar.gz pdf-as-4-596818361623dbe537536683146c3df2a2fcdbb2.tar.bz2 pdf-as-4-596818361623dbe537536683146c3df2a2fcdbb2.zip |
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
Diffstat (limited to 'pdf-as-lib/src')
-rw-r--r-- | pdf-as-lib/src/test/java/at/gv/egiz/pdfas/lib/test/stamping/CertificateAndRequestParameterResolverTest.java | 8 |
1 files changed, 2 insertions, 6 deletions
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); } |