From f15b86942c3b30828a96c5804b39bdf654cff5df Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Fri, 20 Feb 2015 13:19:32 +0100 Subject: Cosmetic changes to source code and new default config --- .../pdfas/lib/impl/verify/IntegrityVerifier.java | 1 - pdf-as-lib/src/main/resources/config/config.zip | Bin 1269360 -> 1220792 bytes .../gv/egiz/pdfas/web/client/test/SimpleTest.java | 7 ++++--- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IntegrityVerifier.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IntegrityVerifier.java index 3b49497b..3b617d8e 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IntegrityVerifier.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IntegrityVerifier.java @@ -19,7 +19,6 @@ import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; -import at.gv.egiz.pdfas.common.exceptions.PDFASError; import at.gv.egiz.pdfas.common.exceptions.PdfAsException; import at.gv.egiz.pdfas.common.exceptions.PdfAsSignatureException; import at.gv.egiz.pdfas.lib.api.Configuration; diff --git a/pdf-as-lib/src/main/resources/config/config.zip b/pdf-as-lib/src/main/resources/config/config.zip index e46d87d2..4e742b98 100644 Binary files a/pdf-as-lib/src/main/resources/config/config.zip and b/pdf-as-lib/src/main/resources/config/config.zip differ diff --git a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java index df5ba495..e73f0d95 100644 --- a/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java +++ b/pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java @@ -52,6 +52,7 @@ public class SimpleTest { signParameters.setConnector(Connector.JKS); signParameters.setPosition(null); signParameters.setProfile("SIGNATURBLOCK_SMALL_DE"); + signParameters.setKeyIdentifier("test"); PDFASSignRequest request = new PDFASSignRequest(); request.setInputData(inputData); @@ -62,8 +63,8 @@ public class SimpleTest { //URL("http://demo.egiz.gv.at/demoportal-pdf_as/wssign?wsdl"); //URL endpoint = new // URL("http://www.buergerkarte.at/pdf-as-extern-4/wssign?wsdl"); - String baseUrl = "http://demo.egiz.gv.at/demoportal-pdf_as/"; - //String baseUrl = "http://localhost:8080/pdf-as-web/"; + //String baseUrl = "http://demo.egiz.gv.at/demoportal-pdf_as/"; + String baseUrl = "http://localhost:8080/pdf-as-web/services/"; //URL endpoint = new URL( // "http://192.168.56.10/pdf-as-web/wssign?wsdl"); @@ -84,7 +85,7 @@ public class SimpleTest { PDFASVerifyRequest verifyRequest = new PDFASVerifyRequest(); verifyRequest.setInputData(response.getSignedPDF()); - verifyRequest.setVerificationLevel(VerificationLevel.FULL_CERT_PATH); + verifyRequest.setVerificationLevel(VerificationLevel.INTEGRITY_ONLY); PDFASVerifyResponse verifyResponse = verifier.verifyPDFDokument(verifyRequest); -- cgit v1.2.3