From 8b61e7d36a9be0c02386a8e0743869202b81735e Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Fri, 24 Jun 2011 08:57:45 +0000 Subject: 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 --- .../egiz/pdfas/impl/api/internal/PdfAsInternalObject.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main/java/at/gv/egiz/pdfas') 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); -- cgit v1.2.3