diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 16:12:10 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2014-06-04 16:12:10 +0200 |
commit | 94c33f3d604ebf9a37dba551eb822b57ebfea902 (patch) | |
tree | eeca7b8e723246f688f76958186bacefcc40297a /pdf-as-cli/src/main/java/at | |
parent | 309c89cfcadf7787ab729ed2903ba1b75aeb1d3c (diff) | |
download | pdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.tar.gz pdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.tar.bz2 pdf-as-4-94c33f3d604ebf9a37dba551eb822b57ebfea902.zip |
Added TransactionId for Signatures
Diffstat (limited to 'pdf-as-cli/src/main/java/at')
-rw-r--r-- | pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |