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>2015-03-20 13:55:15 +0100
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-03-20 13:55:15 +0100
commit0b46b0b5cbdbdcf11859365891cff57e227eff1c (patch)
tree6791a27626328be33abd2b2d6d3d023ba277b183 /pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/config
parentfdac75e81499c11dbb0273292af89faee3297051 (diff)
downloadpdf-as-4-0b46b0b5cbdbdcf11859365891cff57e227eff1c.tar.gz
pdf-as-4-0b46b0b5cbdbdcf11859365891cff57e227eff1c.tar.bz2
pdf-as-4-0b46b0b5cbdbdcf11859365891cff57e227eff1c.zip
added KeyIdentifier selection for MOA via PDF-AS-WEB
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.java27
1 files changed, 27 insertions, 0 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 8404fa65..0e6f2c67 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
@@ -55,6 +55,11 @@ public class WebConfiguration implements IConfigurationConstants {
public static final String RELOAD_PASSWORD = "reload.pwd";
public static final String RELOAD_ENABLED = "reload.enabled";
+ public static final String MOA_LIST = "moal";
+ public static final String MOA_URL = "url";
+ public static final String MOA_KEYID = "KeyIdentifier";
+ public static final String MOA_CERT = "Certificate";
+
public static final String KEYSTORE_LIST = "ksl";
public static final String KEYSTORE_DEFAULT = "ks";
@@ -233,6 +238,28 @@ public class WebConfiguration implements IConfigurationConstants {
return properties.getProperty(KEYSTORE_DEFAULT_KEY_PASS);
}
+ public static boolean isMoaEnabled(String keyIdentifier) {
+ String value = properties.getProperty(MOA_LIST + "." + keyIdentifier + ".enabled");
+ if (value != null) {
+ if (value.equals("true")) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public static String getMoaURL(String keyIdentifier) {
+ return properties.getProperty(MOA_LIST + "." + keyIdentifier + "." + MOA_URL);
+ }
+
+ public static String getMoaKeyID(String keyIdentifier) {
+ return properties.getProperty(MOA_LIST + "." + keyIdentifier + "." + MOA_KEYID);
+ }
+
+ public static String getMoaCertificate(String keyIdentifier) {
+ return properties.getProperty(MOA_LIST + "." + keyIdentifier + "." + MOA_CERT);
+ }
+
public static String getKeystoreFile(String keyIdentifier) {
return properties.getProperty(KEYSTORE_LIST + "." + keyIdentifier + "." + KEYSTORE_FILE);
}