Skip to content

Commit

Permalink
implementation
Browse files Browse the repository at this point in the history
Issue #136
  • Loading branch information
rsoika committed Dec 5, 2020
1 parent ce201f4 commit b61edbd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 3 additions & 7 deletions imixs-archive-signature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
</parent>
<artifactId>imixs-archive-signature</artifactId>

<properties>

<bouncycastle.version>1.67</bouncycastle.version>
</properties>



<dependencies>
<dependency>
<groupId>org.imixs.workflow</groupId>
Expand All @@ -39,7 +34,8 @@

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcmail-jdk15on</artifactId>
<!-- bcmail-jdk15on bcprov-jdk15on -->
<artifactId>bcpkix-jdk15on </artifactId>
<optional>true</optional>
<version>${bouncycastle.version}</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ public ItemCollection execute(ItemCollection document, ItemCollection event) thr
FileData signedFileData = new FileData(fileName, signedContent,"application/pdf", null);

document.addFileData(signedFileData);

// force overwriting content...
document.appendItemValue(SnapshotService.ITEM_SNAPSHOT_OVERWRITEFILECONTENT, fileName);

logger.info("......signing " + fileName + " completed!");
}
}
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
<org.imixs.workflow.version>5.2.6</org.imixs.workflow.version>
<org.imixs.melman.version>1.0.19</org.imixs.melman.version>
<!-- 2.0.19 3.0.0-SNAPSHOT -->
<apache.pdfbox.version>2.0.19</apache.pdfbox.version>
<apache.pdfbox.version>2.0.21</apache.pdfbox.version>
<bouncycastle.version>1.67</bouncycastle.version>
<microprofile.version>3.0</microprofile.version>
<microprofile-metrics.version>2.3</microprofile-metrics.version>
</properties>
Expand Down

0 comments on commit b61edbd

Please sign in to comment.