perfsonar-dev - [GEANT/SA2/ps-java-services] r5479 - in branches/new-structure-with-base2/ps-mdm-base2: . src/main/java/org/perfsonar/base2/servlets
Subject: perfsonar development work
List archive
[GEANT/SA2/ps-java-services] r5479 - in branches/new-structure-with-base2/ps-mdm-base2: . src/main/java/org/perfsonar/base2/servlets
Chronological Thread
- From:
- To:
- Subject: [GEANT/SA2/ps-java-services] r5479 - in branches/new-structure-with-base2/ps-mdm-base2: . src/main/java/org/perfsonar/base2/servlets
- Date: Wed, 10 Feb 2010 08:21:48 GMT
Author: psnc.trzaszczka
Date: 2010-02-10 08:21:48 +0000 (Wed, 10 Feb 2010)
New Revision: 5479
Modified:
branches/new-structure-with-base2/ps-mdm-base2/pom.xml
branches/new-structure-with-base2/ps-mdm-base2/src/main/java/org/perfsonar/base2/servlets/AuthServlet.java
Log:
Base64 from commons-codec instead internal JDK Class - java 1.5
Modified: branches/new-structure-with-base2/ps-mdm-base2/pom.xml
===================================================================
--- branches/new-structure-with-base2/ps-mdm-base2/pom.xml 2010-02-08
10:32:13 UTC (rev 5478)
+++ branches/new-structure-with-base2/ps-mdm-base2/pom.xml 2010-02-10
08:21:48 UTC (rev 5479)
@@ -185,9 +185,13 @@
<artifactId>sunxacml</artifactId>
<version>1.2</version>
</dependency>
+ <dependency>
+ <groupId>commons-codec</groupId>
+ <artifactId>commons-codec</artifactId>
+ <version>1.3</version>
+ </dependency>
-
<!-- ExistDB initalizer -->
<dependency>
Modified:
branches/new-structure-with-base2/ps-mdm-base2/src/main/java/org/perfsonar/base2/servlets/AuthServlet.java
===================================================================
---
branches/new-structure-with-base2/ps-mdm-base2/src/main/java/org/perfsonar/base2/servlets/AuthServlet.java
2010-02-08 10:32:13 UTC (rev 5478)
+++
branches/new-structure-with-base2/ps-mdm-base2/src/main/java/org/perfsonar/base2/servlets/AuthServlet.java
2010-02-10 08:21:48 UTC (rev 5479)
@@ -8,6 +8,7 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
+import org.apache.commons.codec.binary.Base64;
import org.perfsonar.base2.service.configuration.ConfigurationManager;
import org.perfsonar.base2.service.exceptions.PerfSONARException;
@@ -80,8 +81,7 @@
String userpassEncoded = auth.substring(6);
- sun.misc.BASE64Decoder dec = new sun.misc.BASE64Decoder();
- String userpassDecoded = new
String(dec.decodeBuffer(userpassEncoded));
+ String userpassDecoded = new
String(Base64.decodeBase64(userpassEncoded.getBytes()));
if (userpassDecoded.equals(username + ":" + password))
return true;
- [GEANT/SA2/ps-java-services] r5479 - in branches/new-structure-with-base2/ps-mdm-base2: . src/main/java/org/perfsonar/base2/servlets, svn-noreply, 02/10/2010
Archive powered by MHonArc 2.6.16.