From 23a6b86fae0ead4fbe71d75ddd589264b0a8f692 Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 19 Nov 2009 14:10:02 +0000 Subject: added non text oject info git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@432 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../egiz/pdfas/impl/api/sign/SignResultImpl.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src') 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; + } + } -- cgit v1.2.3