diff options
author | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-06-24 08:57:45 +0000 |
---|---|---|
committer | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-06-24 08:57:45 +0000 |
commit | 8b61e7d36a9be0c02386a8e0743869202b81735e (patch) | |
tree | 9f4b51a8b4bd6c42703b55d68dce1f43e37772be /src/main/java/at/gv/egiz/pdfas | |
parent | 9c5771a9fa0765a4ec55e9c1c3cad25549c29e2e (diff) | |
download | pdf-as-3-8b61e7d36a9be0c02386a8e0743869202b81735e.tar.gz pdf-as-3-8b61e7d36a9be0c02386a8e0743869202b81735e.tar.bz2 pdf-as-3-8b61e7d36a9be0c02386a8e0743869202b81735e.zip |
Added connectors for mobile and mobiletest devices when choosing Connector
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@783 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at/gv/egiz/pdfas')
-rw-r--r-- | src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java b/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java index 8dcc07f..b817ea9 100644 --- a/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java +++ b/src/main/java/at/gv/egiz/pdfas/impl/api/internal/PdfAsInternalObject.java @@ -144,7 +144,20 @@ public class PdfAsInternalObject implements PdfAsInternal { } else {
return new LocRefDetachedBKUConnector(cp, loc_ref_url);
}
+ } else if (Constants.SIGNATURE_DEVICE_MOBILE.equals(device)){
+ if (multipart) {
+ return new MultipartDetachedBKUConnector(cp);
+ } else {
+ return new LocRefDetachedBKUConnector(cp, loc_ref_url);
+ }
+ } else if (Constants.SIGNATURE_DEVICE_MOBILETEST.equals(device)){
+ if (multipart) {
+ return new MultipartDetachedBKUConnector(cp);
+ } else {
+ return new LocRefDetachedBKUConnector(cp, loc_ref_url);
+ }
}
+
log.error("Currently only the BKU connector is fully implemented.");
return new LocRefDetachedBKUConnector(cp, loc_ref_url);
|