From 38c6ea7e6014f800a87c72f7bf830a7b4397cbf3 Mon Sep 17 00:00:00 2001 From: bschnalzer Date: Mon, 6 Nov 2017 15:11:50 +0100 Subject: Updated PDFA Preflight Parser and Validation, placeholder issues, PDF-AS-WEB issues --- .../java/at/gv/egiz/pdfas/lib/api/IConfigurationConstants.java | 5 +++++ .../gv/egiz/pdfas/lib/impl/configuration/GlobalConfiguration.java | 7 +++++++ 2 files changed, 12 insertions(+) (limited to 'pdf-as-lib/src/main/java/at/gv/egiz') 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; + } } -- cgit v1.2.3