aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/commons/SignatureInformationAdapter.java13
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;
+ }
+
+
}