aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-19 14:10:02 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-19 14:10:02 +0000
commit23a6b86fae0ead4fbe71d75ddd589264b0a8f692 (patch)
tree98eb5c092e5100400a943fd287f746e2b5daa37a /src/main/java/at/gv/egiz
parent4127200c658555d27a462bfacf929027ce1bae8d (diff)
downloadpdf-as-3-23a6b86fae0ead4fbe71d75ddd589264b0a8f692.tar.gz
pdf-as-3-23a6b86fae0ead4fbe71d75ddd589264b0a8f692.tar.bz2
pdf-as-3-23a6b86fae0ead4fbe71d75ddd589264b0a8f692.zip
added non text oject info
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@432 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java b/src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java
index 7161f5b..2ba7f37 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java
@@ -4,7 +4,9 @@
package at.gv.egiz.pdfas.impl.api.sign;
import java.security.cert.X509Certificate;
+import java.util.List;
+import at.gv.egiz.pdfas.api.analyze.NonTextObjectInfo;
import at.gv.egiz.pdfas.api.io.DataSink;
import at.gv.egiz.pdfas.api.sign.SignResult;
import at.gv.egiz.pdfas.api.sign.pos.SignaturePosition;
@@ -30,6 +32,11 @@ public class SignResultImpl implements SignResult
* The signature position.
*/
protected SignaturePosition signaturePosition = null;
+
+ /**
+ * List {@link NonTextObjectInfo}
+ */
+ protected List nonTextObjects;
/**
* Constructor.
@@ -41,11 +48,12 @@ public class SignResultImpl implements SignResult
* @param signaturePosition
* The signature position.
*/
- public SignResultImpl(DataSink outputDocument, X509Certificate signerCertificate, SignaturePosition signaturePosition)
+ public SignResultImpl(DataSink outputDocument, X509Certificate signerCertificate, SignaturePosition signaturePosition, List nonTextObjects)
{
this.outputDocument = outputDocument;
this.signerCertificate = signerCertificate;
this.signaturePosition = signaturePosition;
+ this.nonTextObjects = nonTextObjects;
}
/**
@@ -72,4 +80,16 @@ public class SignResultImpl implements SignResult
return this.signerCertificate;
}
+
+ /**
+ * List {@link NonTextObjectInfo}
+ */
+ public List getNonTextualObjects() {
+ return this.nonTextObjects;
+ }
+
+ public boolean hasNonTextualObjects() {
+ return this.nonTextObjects != null && this.nonTextObjects.size() > 0;
+ }
+
}