diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 16:12:10 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 16:12:10 +0200 |
commit | 94c33f3d604ebf9a37dba551eb822b57ebfea902 (patch) | |
tree | eeca7b8e723246f688f76958186bacefcc40297a /pdf-as-legacy/src | |
parent | 309c89cfcadf7787ab729ed2903ba1b75aeb1d3c (diff) | |
download | pdf-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.java | 4 |
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); |