diff options
author | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:40 +0000 |
---|---|---|
committer | tkellner <tkellner@3a0b52a2-8410-0410-bc02-ff6273a87459> | 2012-08-24 17:05:40 +0000 |
commit | 12d11aa8f47dbfc8403d5527fe821462523aa0ac (patch) | |
tree | dd7e760125687885584efb108689a8fa68495f58 /trunk/pdf-over-signer/pdf-over-sigpdfas | |
parent | c8558e8d7d7bfe9ff7ce1ecfe0be4940ab06f81f (diff) | |
download | pdf-over-12d11aa8f47dbfc8403d5527fe821462523aa0ac.tar.gz pdf-over-12d11aa8f47dbfc8403d5527fe821462523aa0ac.tar.bz2 pdf-over-12d11aa8f47dbfc8403d5527fe821462523aa0ac.zip |
Mobile BKU first working (currently set to work with test mobile BKU from A-Trust
git-svn-id: https://svn.iaik.tugraz.at/svn/egiz/prj/current/12PDF-OVER-4.0@12396 3a0b52a2-8410-0410-bc02-ff6273a87459
Diffstat (limited to 'trunk/pdf-over-signer/pdf-over-sigpdfas')
-rw-r--r-- | trunk/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigner.java | 10 |
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); |