diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-02-18 11:06:49 +0100 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-02-18 11:07:40 +0100 |
commit | 0decd9fd4799557f9ec77c6309381fe9f22c15dd (patch) | |
tree | e66542c53f319395aec3a5895ab3e72762ff4d9d /pdf-as-lib/src | |
parent | 9496bb87c0789d819689a8750385079e44f515ee (diff) | |
download | pdf-as-4-0decd9fd4799557f9ec77c6309381fe9f22c15dd.tar.gz pdf-as-4-0decd9fd4799557f9ec77c6309381fe9f22c15dd.tar.bz2 pdf-as-4-0decd9fd4799557f9ec77c6309381fe9f22c15dd.zip |
blacking out signature content in verification to produce valid verified
PDF Documents
Signed-off-by: Andreas Fitzek <andreas.fitzek@iaik.tugraz.at>
Diffstat (limited to 'pdf-as-lib/src')
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java | 2 | ||||
-rw-r--r-- | pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IVerifyFilter.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java index 2553ccf3..d477ee0f 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/PdfAsImpl.java @@ -266,7 +266,7 @@ public class PdfAsImpl implements PdfAs, IConfigurationConstants { List<VerifyResult> results = verifyFilter.verify( contentData.toByteArray(), content.getBytes(), - parameter.getVerificationTime()); + parameter.getVerificationTime(), bytes); if (results != null && !results.isEmpty()) { result.addAll(results); } diff --git a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IVerifyFilter.java b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IVerifyFilter.java index e83b6132..a13e384f 100644 --- a/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IVerifyFilter.java +++ b/pdf-as-lib/src/main/java/at/gv/egiz/pdfas/lib/impl/verify/IVerifyFilter.java @@ -9,6 +9,6 @@ import at.gv.egiz.pdfas.lib.api.verify.VerifyResult; public interface IVerifyFilter { public void setConfiguration(Configuration config); - public List<VerifyResult> verify(byte[] contentData, byte[] signatureContent, Date verificationTime) throws PdfAsException; + public List<VerifyResult> verify(byte[] contentData, byte[] signatureContent, Date verificationTime, int[] byteRange) throws PdfAsException; public List<FilterEntry> getFiters(); } |