diff options
author | Thomas <> | 2023-01-12 16:55:34 +0100 |
---|---|---|
committer | Thomas <> | 2023-01-12 16:55:34 +0100 |
commit | 15c1a4715be0d358d4449c77bd71aa7eb926fe54 (patch) | |
tree | f1d54a5ffbe09fd8745902f9bad3f0f98580eca6 /pdf-as-lib/src | |
parent | 5ec5b73c5dc4191d77c764d85197bbf2ac2e2bf2 (diff) | |
download | pdf-as-4-15c1a4715be0d358d4449c77bd71aa7eb926fe54.tar.gz pdf-as-4-15c1a4715be0d358d4449c77bd71aa7eb926fe54.tar.bz2 pdf-as-4-15c1a4715be0d358d4449c77bd71aa7eb926fe54.zip |
feat(sigblock): validate signature-profile information provided by QR-code placeholder
Issue: #64
Diffstat (limited to 'pdf-as-lib/src')
2 files changed, 4 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java index 2908cfcd..756f60c8 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/stamping/TableFactory.java @@ -34,6 +34,7 @@ import java.util.Vector; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.common.exceptions.PdfAsSettingsException; import at.gv.egiz.pdfas.common.settings.IProfileConstants; import at.gv.egiz.pdfas.common.settings.ISettings; @@ -270,7 +271,7 @@ public class TableFactory implements IProfileConstants { return sig_table; } - public static SignatureProfileSettings createProfile(String profileID, ISettings configuration) { + public static SignatureProfileSettings createProfile(String profileID, ISettings configuration) throws PDFASError { return new SignatureProfileSettings(profileID, configuration); } 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 805f87b9..fdc8fa7e 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,6 +12,7 @@ import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; +import at.gv.egiz.pdfas.common.exceptions.PDFASError; 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; @@ -28,7 +29,7 @@ public class CertificateAndRequestParameterResolverTest { private SignatureProfileSettings sigProfileSetting; @Before - public void initialize() { + public void initialize() throws PDFASError { SignParameter signParams = new SignParameterImpl(null, null, null); opStatus = new OperationStatus(buildDummySettings(), signParams , null); |