Author: jaz
Date: Mon Apr 23 11:06:24 2007
New Revision: 531547
URL:
http://svn.apache.org/viewvc?view=rev&rev=531547Log:
pulled block to a method for reuse
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java?view=diff&rev=531547&r1=531546&r2=531547==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/LoginWorker.java Mon Apr 23 11:06:24 2007
@@ -543,12 +543,7 @@
X500Principal x500 = clientCerts[i].getSubjectX500Principal();
Debug.log("Checking client certification for authentication: " + x500.getName(), module);
- Map x500Map = FastMap.newInstance();
- String[] x500Opts = x500.getName().split("\\,");
- for (int x = 0; x < x500Opts.length; x++) {
- String[] nv = x500Opts[x].split("\\=");
- x500Map.put(nv[0], nv[1]);
- }
+ Map x500Map = KeyStoreUtil.getCertX500Map(clientCerts[i]);
if (i == 0) {
userLoginId = (String) x500Map.get("CN");
}