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 --- .../src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pdf-as-web-client/src/test/java/at/gv/egiz') 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