From 4127200c658555d27a462bfacf929027ce1bae8d Mon Sep 17 00:00:00 2001 From: ferbas Date: Thu, 19 Nov 2009 14:09:44 +0000 Subject: added timestamp git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@431 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- .../pdfas/impl/api/commons/SignatureInformationAdapter.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/gv/egiz/pdfas') 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; + } + + } -- cgit v1.2.3