aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src')
-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
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp2
3 files changed, 9 insertions, 4 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");
}
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index ae3ef88d..bc20936e 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -21,7 +21,7 @@
<%
if (WebConfiguration.getLocalBKUURL() != null) {
%>
- <img src="assets/img/onlineBKU.png" /> <button type="submit"
+ <img src="assets/img/localBKU.png" /> <button type="submit"
value="bku" name="connector" id="bku">Lokale BKU
</button>
<%