diff options
Diffstat (limited to 'pdf-as-legacy')
-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); |