diff options
Diffstat (limited to 'pdf-as-web/src')
-rw-r--r-- | pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java index 5e6ee03..dcc0bb2 100644 --- a/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java +++ b/pdf-as-web/src/main/java/at/gv/egiz/pdfas/web/servlets/SignServlet.java @@ -459,6 +459,7 @@ public class SignServlet extends HttpServlet }
if (localFound) {
+
session.setAttribute(SignServlet.ERROR_WITHIN_IFRAME, "no");
pdfaEnabled = "on".equalsIgnoreCase((String)session.getAttribute(SUBMITFORM_PDFA_KEY));
sig_type = (String)session.getAttribute(SUBMITFORM_SIGNATURE_TYPE_KEY);
@@ -482,7 +483,7 @@ public class SignServlet extends HttpServlet {
FileItem item = (FileItem) it.next();
log.debug("item = " + item.getFieldName()); //$NON-NLS-1$
-
+
if (log.isDebugEnabled())
{
if (item.isFormField())
@@ -505,7 +506,7 @@ public class SignServlet extends HttpServlet continue;
}
- if ((item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_MOBILE))) {
+ if ((item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_MOBILE)) || (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_LOCALBKU))) {
if (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_SMARTCARD)) {
session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "moc");
sig_app = "moc";
@@ -514,6 +515,10 @@ public class SignServlet extends HttpServlet session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "mobile");
sig_app = "mobile";
}
+ if (item.getFieldName().equals(FormFields.FIELD_CONNECTOR_LOCALBKU)) {
+ session.setAttribute(SUBMITFORM_SIGNATURE_DEVICE_KEY, "bku");
+ sig_app = "bku";
+ }
continue;
}
@@ -664,9 +669,9 @@ public class SignServlet extends HttpServlet throw new PDFDocumentException(201, "Unable to create PDF document.", e);
}
- }
+ //}
// byte[] pdf = file_upload_fi.get();
- //}
+ }
}
|