diff options
Diffstat (limited to 'src/main/java/demo')
-rw-r--r-- | src/main/java/demo/APIDemo.java | 4 |
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;
|