summaryrefslogtreecommitdiff
path: root/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:54:34 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:54:34 +0000
commit6d3b9d99b0e708d2516caf0f098c58c8a9585114 (patch)
treef27b4c144e19021b04b68a04b01abd92aefbee76 /pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas
parent7b9387fd576cea39d5a430312536d3723fdfeeed (diff)
downloadmocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.tar.gz
mocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.tar.bz2
mocca-6d3b9d99b0e708d2516caf0f098c58c8a9585114.zip
Mobile BKU first working (currently set to work with test mobile BKU from A-Trust
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@31 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas')
-rw-r--r--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/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
index a2f34e9a..43179367 100644
--- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java
+++ b/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);