aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz
diff options
context:
space:
mode:
authorferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 12:35:08 +0000
committerferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-11-13 12:35:08 +0000
commit769ca1275167b1469dfa894283b8a1d86b189e91 (patch)
treecedd98b791ed4f31cbb3543a2563c605779626a2 /src/main/java/at/gv/egiz
parentaa2eda4665a36658aca594aba69acd285700e9ef (diff)
downloadpdf-as-3-769ca1275167b1469dfa894283b8a1d86b189e91.tar.gz
pdf-as-3-769ca1275167b1469dfa894283b8a1d86b189e91.tar.bz2
pdf-as-3-769ca1275167b1469dfa894283b8a1d86b189e91.zip
added TimeStamper
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@387 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/api/sign/SignParameters.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/api/sign/SignParameters.java b/src/main/java/at/gv/egiz/pdfas/api/sign/SignParameters.java
index 54de38d..7dd2f6d 100644
--- a/src/main/java/at/gv/egiz/pdfas/api/sign/SignParameters.java
+++ b/src/main/java/at/gv/egiz/pdfas/api/sign/SignParameters.java
@@ -7,6 +7,7 @@ import at.gv.egiz.pdfas.api.commons.Constants;
import at.gv.egiz.pdfas.api.io.DataSink;
import at.gv.egiz.pdfas.api.io.DataSource;
import at.gv.egiz.pdfas.api.sign.pos.SignaturePositioning;
+import at.gv.egiz.pdfas.api.timestamp.TimeStamper;
/**
* Parameter object that holds the sign parameters.
@@ -96,8 +97,28 @@ public class SignParameters
* The output DataSink that will receive the signed document.
*/
protected DataSink output = null;
+
+ protected TimeStamper timeStamperImpl;
+
+
+ /**
+ * {@link #setTimeStamperImpl(TimeStamper)}
+ * @return
+ */
+ public TimeStamper getTimeStamperImpl() {
+ return this.timeStamperImpl;
+ }
/**
+ * Set a {@link TimeStamper} to create a timestamp on the signature value. Will be
+ * called after sign. For binary signatures only. Timestamp will be embedded in egiz dict /TimeStamp.
+ * @param timeStamperImpl
+ */
+ public void setTimeStamperImpl(TimeStamper timeStamperImpl) {
+ this.timeStamperImpl = timeStamperImpl;
+ }
+
+/**
* @return the document
*/
public DataSource getDocument()