From 94c33f3d604ebf9a37dba551eb822b57ebfea902 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Wed, 4 Jun 2014 16:12:10 +0200 Subject: Added TransactionId for Signatures --- pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pdf-as-cli/src/main') diff --git a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java index 37f8486f..eee47888 100644 --- a/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java +++ b/pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java @@ -28,6 +28,7 @@ import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Iterator; import java.util.List; +import java.util.UUID; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; @@ -319,6 +320,10 @@ public class Main { SignParameter signParameter = PdfAsFactory.createSignParameter( configuration, dataSource); + String id = UUID.randomUUID().toString(); + signParameter.setTransactionId(id); + System.out.println("Transaction: " + id); + IPlainSigner slConnector = null; if (connector != null) { -- cgit v1.2.3