aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-06-27 16:04:53 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2016-06-27 16:04:53 +0200
commit06cf27605579abab9d18615d1fef701b941e06f6 (patch)
tree0bcbd12c043ea271958fe1f74c3d9630a2dc0300 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config
parente3d88a0a046665e8901e65ef18a1bbf741777885 (diff)
downloadpdf-as-4-06cf27605579abab9d18615d1fef701b941e06f6.tar.gz
pdf-as-4-06cf27605579abab9d18615d1fef701b941e06f6.tar.bz2
pdf-as-4-06cf27605579abab9d18615d1fef701b941e06f6.zip
added JSON API, added keep signed data flag for configuration
Diffstat (limited to 'pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config')
-rw-r--r--pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config/WebConfiguration.java13
1 files changed, 12 insertions, 1 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 4ef320a1..7fbed8d9 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
@@ -57,6 +57,7 @@ public class WebConfiguration implements IConfigurationConstants {
public static final String SOAP_VERIFY_ENABLED = "soap.verify.enabled";
public static final String RELOAD_PASSWORD = "reload.pwd";
public static final String RELOAD_ENABLED = "reload.enabled";
+ public static final String KEEP_SIGNED_DOCUMENT = "keep.signed";
public static final String MOA_LIST = "moal";
public static final String MOA_URL = "url";
@@ -299,7 +300,17 @@ public class WebConfiguration implements IConfigurationConstants {
}
return false;
}
-
+
+ public static boolean isKeepSignedDocument() {
+ String value = properties.getProperty(KEEP_SIGNED_DOCUMENT);
+ if (value != null) {
+ if (value.equals("true")) {
+ return true;
+ }
+ }
+ return false;
+ }
+
public static boolean isMoaEnabled(String keyIdentifier) {
String value = properties.getProperty(MOA_LIST + "." + keyIdentifier + ".enabled");
if (value != null) {