summaryrefslogtreecommitdiff
path: root/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/pdf-over-signer/pdf-over-sigpdfas/src/main')
-rw-r--r--trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
index a2f34e9a..43179367 100644
--- a/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
+++ b/trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
@@ -1,5 +1,6 @@
package at.asit.pdfover.signer.pdfas;
+import at.asit.pdfover.signator.BKUs;
import at.asit.pdfover.signator.ByteArrayDocumentSource;
import at.asit.pdfover.signator.SLResponse;
import at.asit.pdfover.signator.SignatureException;
@@ -58,7 +59,14 @@ public class PDFASSigner implements Signer {
SignParameters params = new SignParameters();
params.setSignaturePositioning(sign_para.getPDFASPositioning());
- params.setSignatureDevice(Constants.SIGNATURE_DEVICE_BKU);
+
+ if(parameter.getSignatureDevice() == BKUs.LOCAL) {
+ params.setSignatureDevice(Constants.SIGNATURE_DEVICE_BKU);
+ } else if(parameter.getSignatureDevice() == BKUs.MOBILE) {
+ // TODO: change to MOBILE!!
+ params.setSignatureDevice(Constants.SIGNATURE_DEVICE_MOBILE);
+ //params.setSignatureDevice(Constants.SIGNATURE_DEVICE_MOBILETEST);
+ }
params.setSignatureType(Constants.SIGNATURE_TYPE_BINARY);
params.setSignatureProfileId(PROFILE_ID);