diff options
author | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-11-19 14:09:44 +0000 |
---|---|---|
committer | ferbas <ferbas@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2009-11-19 14:09:44 +0000 |
commit | 4127200c658555d27a462bfacf929027ce1bae8d (patch) | |
tree | e4870f37891e66d271971ec381058369b9dd2ca2 | |
parent | a579fca6ae2f26219a364a8cbf13dc5a82acf1d9 (diff) | |
download | pdf-as-3-4127200c658555d27a462bfacf929027ce1bae8d.tar.gz pdf-as-3-4127200c658555d27a462bfacf929027ce1bae8d.tar.bz2 pdf-as-3-4127200c658555d27a462bfacf929027ce1bae8d.zip |
added timestamp
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@431 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java b/src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java index 875c3d9..3d4b560 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java @@ -9,6 +9,7 @@ import java.util.Date; import at.gv.egiz.pdfas.api.commons.Constants;
import at.gv.egiz.pdfas.api.commons.SignatureInformation;
import at.gv.egiz.pdfas.api.io.DataSource;
+import at.knowcenter.wag.egov.egiz.pdf.BinarySignatureHolder;
import at.knowcenter.wag.egov.egiz.pdf.EGIZDate;
import at.knowcenter.wag.egov.egiz.pdf.SignatureHolder;
@@ -24,6 +25,8 @@ public class SignatureInformationAdapter implements SignatureInformation * The framework SignatureHolder to be adapted to an API SignatureInformation.
*/
protected SignatureHolder signatureHolder = null;
+
+ protected String timeStamp = null;
/**
* Constructor.
@@ -34,7 +37,10 @@ public class SignatureInformationAdapter implements SignatureInformation */
public SignatureInformationAdapter(SignatureHolder signatureHolder)
{
- this.signatureHolder = signatureHolder;
+ this.signatureHolder = signatureHolder;
+ if (signatureHolder instanceof BinarySignatureHolder) {
+ this.timeStamp = ((BinarySignatureHolder)signatureHolder).getSignatureObject().getTimeStamp();
+ }
}
/**
@@ -84,4 +90,9 @@ public class SignatureInformationAdapter implements SignatureInformation return date;
}
+ public String getTimeStampValue() {
+ return this.timeStamp;
+ }
+
+
}
|