aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/pdfas/impl
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas/impl')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java b/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
index f161b3a..fd899fe 100644
--- a/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
+++ b/src/main/java/at/gv/egiz/pdfas/impl/api/verify/VerifyResultAdapter.java
@@ -15,6 +15,7 @@ import at.gv.egiz.pdfas.api.verify.SignatureCheck;
import at.gv.egiz.pdfas.api.verify.VerifyResult;
import at.gv.egiz.pdfas.impl.api.commons.SignatureInformationAdapter;
import at.knowcenter.wag.egov.egiz.exceptions.SettingNotFoundException;
+import at.knowcenter.wag.egov.egiz.pdf.BinarySignatureHolder;
import at.knowcenter.wag.egov.egiz.pdf.SignatureHolder;
import at.knowcenter.wag.egov.egiz.sig.SignatureResponse;
@@ -35,6 +36,8 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements
protected Date vTime = null;
+ private String timestamp;
+
/**
* Constructor.
*
@@ -50,6 +53,9 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements
super(sh);
this.sigRes = sigRes;
this.vTime = verificationTime;
+ if (sh instanceof BinarySignatureHolder) {
+ this.timestamp = ((BinarySignatureHolder)sh).getSignatureObject().getTimeStamp();
+ }
// [tknall] start: missing time of verification fixed
if (this.vTime == null) {
// verification time not been set (= null) therefore signingtime equals verificationtime
@@ -153,5 +159,9 @@ public class VerifyResultAdapter extends SignatureInformationAdapter implements
public boolean isPublicAuthority() {
return this.sigRes.isPublicAuthority();
}
+
+ public String getTimestampValue() {
+ return this.timestamp;
+ }
}