aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java28
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/ExternSignServlet.java9
2 files changed, 3 insertions, 34 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
index 6c3b4a76..cdd66a1d 100644
--- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
+++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java
@@ -207,7 +207,7 @@ public class WebConfiguration implements IConfigurationConstants {
}
public static String getLocalBKUURL() {
- if(!getLocalBKUEnabled()) {
+ if(getLocalBKUEnabled()) {
String overwrite = properties.getProperty(CONFIG_BKU_URL);
if(overwrite == null) {
overwrite = properties.getProperty(LOCAL_BKU_URL);
@@ -220,22 +220,8 @@ public class WebConfiguration implements IConfigurationConstants {
return null;
}
- public static String getOnlineBKUURL() {
- if(!getOnlineBKUEnabled()) {
- String overwrite = properties.getProperty(MOC_SIGN_URL);
- if(overwrite == null) {
- overwrite = properties.getProperty(ONLINE_BKU_URL);
- if(overwrite == null) {
- overwrite = PdfAsHelper.getPdfAsConfig().getValue(MOC_SIGN_URL);
- }
- }
- return overwrite;
- }
- return null;
- }
-
public static String getHandyBKUURL() {
- if(!getMobileBKUEnabled()) {
+ if(getMobileBKUEnabled()) {
String overwrite = properties.getProperty(MOBILE_SIGN_URL);
if(overwrite == null) {
overwrite = properties.getProperty(MOBILE_BKU_URL);
@@ -427,16 +413,6 @@ public class WebConfiguration implements IConfigurationConstants {
return false;
}
- public static boolean getOnlineBKUEnabled() {
- String value = properties.getProperty(ONLINE_BKU_ENABLED);
- if (value != null) {
- if (value.equals("true")) {
- return true;
- }
- }
- return false;
- }
-
public static boolean getMobileBKUEnabled() {
String value = properties.getProperty(MOBILE_BKU_ENABLED);
if (value != null) {
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 f21447dd..b986d175 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
@@ -358,15 +358,8 @@ public class ExternSignServlet extends HttpServlet {
throw new PdfAsWebException("Invalid connector bku is not supported");
}
}
-
- if(connector.equals("onlinebku")) {
- if(WebConfiguration.getLocalBKUURL() == null) {
- throw new PdfAsWebException("Invalid connector onlinebku is not supported");
- }
- }
-
if(connector.equals("mobilebku")) {
- if(WebConfiguration.getLocalBKUURL() == null) {
+ if(WebConfiguration.getHandyBKUURL() == null) {
throw new PdfAsWebException("Invalid connector mobilebku is not supported");
}
}