diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2015-02-20 13:19:32 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2015-02-20 13:19:32 +0100 |
commit | f15b86942c3b30828a96c5804b39bdf654cff5df (patch) | |
tree | f06b72702e060713e3902a5fd5adbbca1ee5b32b | |
parent | cee126cc2e3374b93445e7ad3b3417b0deee86d5 (diff) | |
download | pdf-as-4-f15b86942c3b30828a96c5804b39bdf654cff5df.tar.gz pdf-as-4-f15b86942c3b30828a96c5804b39bdf654cff5df.tar.bz2 pdf-as-4-f15b86942c3b30828a96c5804b39bdf654cff5df.zip |
Cosmetic changes to source code and new default config
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IntegrityVerifier.java | 1 | ||||
-rw-r--r-- | pdf-as-lib/src/main/resources/config/config.zip | bin | 1269360 -> 1220792 bytes | |||
-rw-r--r-- | pdf-as-web-client/src/test/java/at/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 Binary files differindex e46d87d2..4e742b98 100644 --- a/pdf-as-lib/src/main/resources/config/config.zip +++ b/pdf-as-lib/src/main/resources/config/config.zip 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); |