aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-05-06 13:12:27 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2015-05-06 13:12:27 +0200
commitd389d024c2e4c6922e8f44af40be32218244887f (patch)
treef7aa41ae74db9b518136c50b8e59ea02b0bc14d7 /pdf-as-common
parentec4490769f0fc9c1562688b2393e97885f39a04b (diff)
parentea72400ae232d20c76ddd2be91f39a1bbbdb4e71 (diff)
downloadpdf-as-4-d389d024c2e4c6922e8f44af40be32218244887f.tar.gz
pdf-as-4-d389d024c2e4c6922e8f44af40be32218244887f.tar.bz2
pdf-as-4-d389d024c2e4c6922e8f44af40be32218244887f.zip
merge PDFUA
Diffstat (limited to 'pdf-as-common')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java2
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java9
-rw-r--r--pdf-as-common/src/main/resources/resources/messages/common.properties1
3 files changed, 12 insertions, 0 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
index 6cdfa0b3..2c2b941b 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/IProfileConstants.java
@@ -92,4 +92,6 @@ public interface IProfileConstants {
public final static String SIGNFIELD_VALUE = "adobeSignFieldValue";
public final static String TIMEZONE_BASE = "timezone";
public final static String SIG_PDFA1B_VALID = "SIG_PDFA1B_VALID";
+ public final static String SIG_PDFUA_FORCE = "SIG_PDFUA_FORCE";
+
}
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
index dc1250fb..cbc1d601 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/settings/SignatureProfileSettings.java
@@ -212,4 +212,13 @@ public class SignatureProfileSettings implements IProfileConstants {
}
return false;
}
+
+ public boolean isPDFUA() {
+ SignatureProfileEntry entry = profileInformations.get(SIG_PDFUA_FORCE);
+ if (entry != null) {
+ String value = entry.getCaption();
+ return "true".equals(value);
+ }
+ return false;
+ }
}
diff --git a/pdf-as-common/src/main/resources/resources/messages/common.properties b/pdf-as-common/src/main/resources/resources/messages/common.properties
index 19371573..8ddfe312 100644
--- a/pdf-as-common/src/main/resources/resources/messages/common.properties
+++ b/pdf-as-common/src/main/resources/resources/messages/common.properties
@@ -44,6 +44,7 @@ error.pdf.sig.15=Keystore password is null
error.pdf.sig.16=Keyentry password is null
error.pdf.sig.17=Failed to retrieve certificate
error.pdf.sig.18=Given Alias contains no private key
+error.pdf.sig.pdfua.1=Could not create PDF-UA conform document
#Signature verification errors
error.pdf.verify.01=No signed data available