summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main/java/at
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-12 13:48:28 +0100
committerTobias Kellner <tobias.kellner@iaik.tugraz.at>2014-12-12 13:48:28 +0100
commit683f42f194a30e70d4d09f4bac779d15526e1436 (patch)
tree44e74d6f290a623af9a21c06fad02a9847774ec4 /pdf-over-signator/src/main/java/at
parentb1d832da0a2b9da58d94c529ab8d0e4aabcb4c0b (diff)
downloadmocca-683f42f194a30e70d4d09f4bac779d15526e1436.tar.gz
mocca-683f42f194a30e70d4d09f4bac779d15526e1436.tar.bz2
mocca-683f42f194a30e70d4d09f4bac779d15526e1436.zip
Make PDF/A compatibility configurable
Diffstat (limited to 'pdf-over-signator/src/main/java/at')
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java25
1 files changed, 23 insertions, 2 deletions
diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
index 7db164c6..8b08e3dd 100644
--- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
+++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java
@@ -36,12 +36,14 @@ public abstract class SignatureParameter {
/** The input document */
protected DocumentSource documentSource = null;
- /** holds the emblem */
+ /** Holds the emblem */
protected Emblem emblem;
+ /** Whether to use PDF/A compatibility */
+ protected boolean pdfACompat;
+
/** The signature device */
protected BKUs signatureDevice;
-
/**
* @return the signatureDevice
*/
@@ -96,6 +98,25 @@ public abstract class SignatureParameter {
}
/**
+ * Getter of the property <tt>signaturePdfACompat</tt>
+ *
+ * @return Returns the PDF/A compatibility setting.
+ */
+ public boolean getSignaturePdfACompat() {
+ return this.pdfACompat;
+ }
+
+ /**
+ * Setter of the property <tt>signaturePdfACompat</tt>
+ *
+ * @param compat
+ * The the PDF/A compatibility setting to set.
+ */
+ public void setSignaturePdfACompat(boolean compat) {
+ this.pdfACompat = compat;
+ }
+
+ /**
* Getter of the property <tt>keyIdentifier</tt>
*
* @return Returns the keyIdentifier.