aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-cli/src/main
diff options
context:
space:
mode:
authorAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-04-10 18:14:01 +0200
committerAlexander Marsalek <amarsalek@iaik.tugraz.at>2021-04-10 18:14:01 +0200
commit7824a4d85cfe855ddeb330c6ff753a2e60f8009b (patch)
treedf82e7826a647f41b60f005d13b2bd6237162e4a /pdf-as-cli/src/main
parent263eaef58922b74bd31012f2732de8f25eb9ac0b (diff)
downloadpdf-as-4-7824a4d85cfe855ddeb330c6ff753a2e60f8009b.tar.gz
pdf-as-4-7824a4d85cfe855ddeb330c6ff753a2e60f8009b.tar.bz2
pdf-as-4-7824a4d85cfe855ddeb330c6ff753a2e60f8009b.zip
pass parameters to resolver(s)
Diffstat (limited to 'pdf-as-cli/src/main')
-rw-r--r--pdf-as-cli/src/main/java/at/gv/egiz/pdfas/cli/Main.java9
1 files changed, 9 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 c2d35c40..47d06576 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
@@ -26,8 +26,10 @@ package at.gv.egiz.pdfas.cli;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
+import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
+import java.util.Map;
import java.util.Map.Entry;
import java.util.UUID;
@@ -432,6 +434,13 @@ public class Main {
System.out.println("Starting signature for " + pdfFile);
System.out.println("Selected signature Profile " + profilID);
+ //TODO get values from CLI
+ Map<String, String> test = new HashMap<>();
+ test.put("schoolName", "EGIZ testschule");
+
+ test.put("subject","bbDbb");
+ signParameter.setDynamicSignatureBlockArguments(test);
+
SignResult result = null;
try {
result = pdfAs.sign(signParameter);