aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-lib/src/main/java/at/gv/egiz/pdfas
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-lib/src/main/java/at/gv/egiz/pdfas
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-lib/src/main/java/at/gv/egiz/pdfas')
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java5
-rw-r--r--pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java7
2 files changed, 12 insertions, 0 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
index 364acb44..f8f71f2f 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java
@@ -52,6 +52,9 @@ public interface IConfigurationConstants {
public static final String DEFAULT_SIGNATURE_PROFILE = SIG_OBJECT + SEPERATOR + TYPE + SEPERATOR + DEFAULT;
public static final String CONFIG_BKU_URL = "bku.sign.url";
+
+ /*Protect PDF content*/
+ public static final String DEFAULT_CONFIG_PROTECT_PDF=DEFAULT+SEPERATOR+"protectPDF";
/**
* MOA SS Signing Key Identifier
@@ -106,6 +109,8 @@ public interface IConfigurationConstants {
public static final String SIG_PLACEMENT_DEBUG_OUTPUT = "sigblock.placement.debug.file";
+
+
/**
* PADES Constants
*/
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java
index f2864a07..d04f6878 100644
--- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java
+++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java
@@ -39,5 +39,12 @@ public class GlobalConfiguration extends SpecificBaseConfiguration
}
return null;
}
+
+ public String getDefaultProtection() {
+ if(this.configuration.hasValue(DEFAULT_CONFIG_PROTECT_PDF)) {
+ return this.configuration.getValue(DEFAULT_CONFIG_PROTECT_PDF);
+ }
+ return null;
+ }
}