diff options
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/sign/SignResultImpl.java | 22 |
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;
+ }
+
}
|