aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web-client/src/test/java/at
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web-client/src/test/java/at')
-rw-r--r--pdf-as-web-client/src/test/java/at/gv/egiz/pdfas/web/client/test/SimpleTest.java7
1 files changed, 4 insertions, 3 deletions
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);