Skip to content

Commit e355d4e

Browse files
FOP-3299: Remove DigestMethod from pdf signing
1 parent 89a2564 commit e355d4e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

fop-core/src/main/java/org/apache/fop/pdf/PDFSignature.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ static class SigRef extends PDFDictionary {
7676
SigRef() {
7777
put("Type", new PDFName("SigRef"));
7878
put("TransformMethod", new PDFName("DocMDP"));
79-
put("DigestMethod", new PDFName("SHA1"));
8079
put("TransformParams", new TransformParams());
8180
}
8281
}

fop-core/src/test/java/org/apache/fop/pdf/PDFSigningTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public void testFO() throws Exception {
5252
+ " /T (Signature1)\n"
5353
+ " /TU (Signature1)\n"
5454
+ " /Rect [0 0 0 0]"));
55+
Assert.assertFalse(out.toString().contains("/DigestMethod"));
5556
}
5657

5758
@Test

0 commit comments

Comments
 (0)