aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authortknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2006-12-14 15:29:00 +0000
committertknall <tknall@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2006-12-14 15:29:00 +0000
commit95a543717f5492900fc5ad94e5a80b5da7d14b15 (patch)
tree54e6b09cb5cdf4850d9787343ff47a9934a4d724 /src/main/java
parentaa7a5c324b93445184d08303e811c69d945169a0 (diff)
downloadpdf-as-3-95a543717f5492900fc5ad94e5a80b5da7d14b15.tar.gz
pdf-as-3-95a543717f5492900fc5ad94e5a80b5da7d14b15.tar.bz2
pdf-as-3-95a543717f5492900fc5ad94e5a80b5da7d14b15.zip
basic authentication for logging disabled
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@22 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java2
-rw-r--r--src/main/java/at/knowcenter/wag/egov/egiz/web/Sign.java26
2 files changed, 24 insertions, 4 deletions
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java
index 998af55..c474412 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/ldap/api/LDAPAPIFactory.java
@@ -1,6 +1,7 @@
package at.knowcenter.wag.egov.egiz.ldap.api;
import iaik.security.ecc.provider.ECCProvider;
+import iaik.security.provider.IAIK;
import at.knowcenter.wag.egov.egiz.ldap.client.LDAPIssuerNameFilter;
import at.knowcenter.wag.egov.egiz.sig.LDAPAPI;
@@ -12,6 +13,7 @@ public abstract class LDAPAPIFactory {
private static LDAPAPIFactory ldapAPIfactoryInstance;
protected LDAPAPIFactory() {
+ IAIK.addAsProvider();
ECCProvider.addAsProvider();
}
diff --git a/src/main/java/at/knowcenter/wag/egov/egiz/web/Sign.java b/src/main/java/at/knowcenter/wag/egov/egiz/web/Sign.java
index a3ded84..0a5a451 100644
--- a/src/main/java/at/knowcenter/wag/egov/egiz/web/Sign.java
+++ b/src/main/java/at/knowcenter/wag/egov/egiz/web/Sign.java
@@ -99,6 +99,9 @@ public class Sign extends HttpServlet
disp.forward(request, response);
}
+ /**
+ * @author modified by tknall
+ */
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
String authenticate = request.getHeader(AUTH);
@@ -116,7 +119,10 @@ public class Sign extends HttpServlet
String user_name = auth_value[0];
String user_password = auth_value[1];
logger_.info("username:" + user_name);
- logger_.info("password:" + user_password);
+ // start modification tknall
+// logger_.info("password:" + user_password);
+ logger_.info("password:XXXXXXXXXXXX");
+ // stop modification tknall
HttpSession session = request.getSession();
session.setAttribute(SessionAttributes.ATTRIBUTE_USER_NAME, user_name);
@@ -125,11 +131,23 @@ public class Sign extends HttpServlet
dispatch(request, response, "/jsp/signupload.jsp");
return;
}
+ // start modification tknall
+ } else {
+ String user_name = "";
+ String user_password = "";
+ logger_.info("authenticate:User has not been authenticated!");
+ logger_.info("username: UNKNOWN");
+ logger_.info("password: XXXXXXXXXXXX");
+ HttpSession session = request.getSession();
+ session.setAttribute("uname", user_name);
+ session.setAttribute("upass", user_password);
+ dispatch(request, response, "/jsp/signupload.jsp");
}
- request.setAttribute("error", "Falsche Authentifikation");
- request.setAttribute("cause", "Passwort oder Benutzername ist falsch");
- dispatch(request, response, "/jsp/error.jsp");
+// request.setAttribute("error", "Falsche Authentifikation");
+// request.setAttribute("cause", "Passwort oder Benutzername ist falsch");
+// dispatch(request, response, "/jsp/error.jsp");
+ // stop modification tknall
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException