aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-legacy/src
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-04 16:12:10 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-04 16:12:10 +0200
commit94c33f3d604ebf9a37dba551eb822b57ebfea902 (patch)
treeeeca7b8e723246f688f76958186bacefcc40297a /pdf-as-legacy/src
parent309c89cfcadf7787ab729ed2903ba1b75aeb1d3c (diff)
downloadpdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.tar.gz
pdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.tar.bz2
pdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.zip
Added TransactionId for Signatures
Diffstat (limited to 'pdf-as-legacy/src')
-rw-r--r--pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
index 005e3963..9ed02053 100644
--- a/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
+++ b/pdf-as-legacy/src/main/java/at/gv/egiz/pdfas/wrapper/PdfAsObject.java
@@ -87,7 +87,7 @@ public class PdfAsObject implements PdfAs {
if (request.needSignature()) {
try {
byte[] signature = sdi.wrapper.getSignParameter4().getPlainSigner().sign(
- request.getSignatureData(), request.getSignatureDataByteRange());
+ request.getSignatureData(), request.getSignatureDataByteRange(), sdi.wrapper.getSignParameter4());
request.setSigature(signature);
request = this.pdfas4.process(request);
if(request.isReady()) {
@@ -233,7 +233,7 @@ public class PdfAsObject implements PdfAs {
if (request.needCertificate()) {
X509Certificate certificate = signParameter4.getPlainSigner()
- .getCertificate();
+ .getCertificate(signParameter4);
sdi = new SignatureDetailInformationWrapper(certificate);
request.setCertificate(certificate.getEncoded());
request = this.pdfas4.process(request);