aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/demo
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-02-04 09:12:26 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2009-02-04 09:12:26 +0000
commit0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99 (patch)
tree207c8f9b38c27c743e77ce3803e538ab610c0161 /src/main/java/demo
parent03875a41dd5b065c8ab0c04268ac9371f51a8639 (diff)
downloadpdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.tar.gz
pdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.tar.bz2
pdf-as-3-0ef7a5eb1e0ebe7edd534ecefcc60a087ef53d99.zip
Removing some TODOs, Example to override profile keyidentifier added to APIDemo
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@324 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/demo')
-rw-r--r--src/main/java/demo/APIDemo.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/demo/APIDemo.java b/src/main/java/demo/APIDemo.java
index c2a989e..6e6aebd 100644
--- a/src/main/java/demo/APIDemo.java
+++ b/src/main/java/demo/APIDemo.java
@@ -149,6 +149,8 @@ public final class APIDemo {
signParameters.setSignatureDevice(signatureDevice);
signParameters.setSignatureProfileId(signatureProfile);
signParameters.setSignaturePositioning(signaturePos);
+ // override key identifier from profile
+// signParameters.setSignatureKeyIdentifier("KG_allgemein");
// sign
System.out.println("Signing...");
@@ -213,7 +215,7 @@ public final class APIDemo {
File configdir = new File("./work");
File unsignedFile = new File("./test-files/blindtext.pdf");
- String signatureMode = Constants.SIGNATURE_TYPE_BINARY;
+ String signatureMode = Constants.SIGNATURE_TYPE_TEXTUAL;
String signatureDevice = Constants.SIGNATURE_DEVICE_MOA;
String signatureProfile = "SIGNATURBLOCK_DE";
SignaturePositioning signaturePos = null;