aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-04-08 12:40:14 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2010-04-08 12:40:14 +0000
commit04f5e818d61dcdc1792a2f162db14acc28a0779f (patch)
treeb97f1be4fbf8f87b16b768bd32612e29eb6fb7b8 /src/main/java/at
parent11b5950be66bcc9d6f0bb28d3fc9d211bc70f4d9 (diff)
downloadpdf-as-3-04f5e818d61dcdc1792a2f162db14acc28a0779f.tar.gz
pdf-as-3-04f5e818d61dcdc1792a2f162db14acc28a0779f.tar.bz2
pdf-as-3-04f5e818d61dcdc1792a2f162db14acc28a0779f.zip
minor updates of the web application, more logging added, default-configuration: a-trust ccs support disabled until bugfixes ccs version is available, pdf-as configuration: small signature profile added
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@581 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/gv/egiz/pdfas/api/PdfAs.java4
-rw-r--r--src/main/java/at/gv/egiz/pdfas/web/helper/SessionHelper.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java1
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/SignServlet.java4
5 files changed, 8 insertions, 5 deletions
diff --git a/src/main/java/at/gv/egiz/pdfas/api/PdfAs.java b/src/main/java/at/gv/egiz/pdfas/api/PdfAs.java
index 4a8a0e0..6e63b85 100644
--- a/src/main/java/at/gv/egiz/pdfas/api/PdfAs.java
+++ b/src/main/java/at/gv/egiz/pdfas/api/PdfAs.java
@@ -99,7 +99,7 @@ public interface PdfAs
public void reloadConfig() throws PdfAsException;
/**
- * Returns the list of information objects about the profiles available in the
+ * Returns the list of information objects about activated profiles available in the
* configuration.
*
* <p>
@@ -113,7 +113,7 @@ public interface PdfAs
* </p>
*
* @return Returns the list of {@link SignatureProfile} objects with
- * information about the profiles available in the configuration.
+ * information about active profiles available in the configuration.
* @throws PdfAsException
* Thrown on error.
*
diff --git a/src/main/java/at/gv/egiz/pdfas/web/helper/SessionHelper.java b/src/main/java/at/gv/egiz/pdfas/web/helper/SessionHelper.java
index 93c0aa2..ca09871 100644
--- a/src/main/java/at/gv/egiz/pdfas/web/helper/SessionHelper.java
+++ b/src/main/java/at/gv/egiz/pdfas/web/helper/SessionHelper.java
@@ -37,7 +37,7 @@ public class SessionHelper
Object sessionObject = session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
if (sessionObject == null)
{
- String msg = "The session is not found or no longer valid."; //$NON-NLS-1$
+ String msg = "Unable to find session data in session " + session.getId();
log.error(msg);
throw new SessionExpiredException(msg);
}
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
index 4b585fe..424aad1 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
@@ -100,7 +100,7 @@ public abstract class PdfAS
* The current version of the pdf-as library. This version string is logged on every invocation
* of the api or the web application.
*/
- public static final String PDFAS_VERSION = "3.1.1-snapshot (20100316)";
+ public static final String PDFAS_VERSION = "3.1.1-snapshot (20100408)";
/**
* The key of the strict mode setting.
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
index 1db1de0..aca45f0 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/pdf/AdobeSignatureHelper.java
@@ -136,6 +136,7 @@ public class AdobeSignatureHelper {
sig.setName(getAdobeSignText(profileId, si));
sap.setCryptoDictionary(sig);
+ sap.setCertificationLevel(PdfSignatureAppearance.NOT_CERTIFIED);
// content element is mandatory but empty
HashMap exc = new HashMap();
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/SignServlet.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/SignServlet.java
index 69b237f..4c93b73 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/SignServlet.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/servlets/SignServlet.java
@@ -280,7 +280,9 @@ public class SignServlet extends HttpServlet
si.pos = pos;
// end add
- request.getSession().setAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION, si);
+ HttpSession session = request.getSession();
+ log.info("Putting signature data into session " + session.getId());
+ session.setAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION, si);
// String user_name = (String)
// request.getSession().getAttribute(SessionAttributes.ATTRIBUTE_USER_NAME);