aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at
diff options
context:
space:
mode:
authorbschnalzer <bianca.schnalzer@egiz.gv.at>2017-11-06 15:11:50 +0100
committerbschnalzer <bianca.schnalzer@egiz.gv.at>2017-11-06 15:11:50 +0100
commit38c6ea7e6014f800a87c72f7bf830a7b4397cbf3 (patch)
treeaafba7a48d22df189decfbdc6e890a8d8c5b6026 /pdf-as-web/src/main/java/at
parent2b24d452a75bbf180009bd82e177a6280307d22d (diff)
downloadpdf-as-4-38c6ea7e6014f800a87c72f7bf830a7b4397cbf3.tar.gz
pdf-as-4-38c6ea7e6014f800a87c72f7bf830a7b4397cbf3.tar.bz2
pdf-as-4-38c6ea7e6014f800a87c72f7bf830a7b4397cbf3.zip
Updated PDFA Preflight Parser and Validation, placeholder issues, PDF-AS-WEB issues
Diffstat (limited to 'pdf-as-web/src/main/java/at')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java7
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java4
2 files changed, 8 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
index b986d175..4ec8021d 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java
@@ -363,7 +363,12 @@ public class ExternSignServlet extends HttpServlet {
throw new PdfAsWebException("Invalid connector mobilebku is not supported");
}
}
-
+ if(connector.equals("onlinebku")) {
+ if(WebConfiguration.getOnlineBKUURL() == null) {
+ throw new PdfAsWebException("Invalid connector bku is not supported");
+ }
+ }
+
PdfAsHelper.setStatisticEvent(request, response, statisticEvent);
PdfAsHelper.startSignature(request, response, getServletContext(), pdfData, connector,
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java
index 89cb3039..e8ac3658 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/UIEntryPointServlet.java
@@ -142,14 +142,14 @@ public class UIEntryPointServlet extends HttpServlet {
}
if (connector.equals(Connector.ONLINEBKU)) {
- if (WebConfiguration.getLocalBKUURL() == null) {
+ if (WebConfiguration.getOnlineBKUURL() == null) {
throw new PdfAsWebException(
"Invalid connector onlinebku is not supported");
}
}
if (connector.equals(Connector.MOBILEBKU)) {
- if (WebConfiguration.getLocalBKUURL() == null) {
+ if (WebConfiguration.getHandyBKUURL() == null) {
throw new PdfAsWebException(
"Invalid connector mobilebku is not supported");
}