incubator-lokahi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tob...@apache.org
Subject svn commit: r595685 - /incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java
Date Fri, 16 Nov 2007 14:45:14 GMT
Author: toback
Date: Fri Nov 16 06:45:13 2007
New Revision: 595685

URL: http://svn.apache.org/viewvc?rev=595685&view=rev
Log:
Changed the autenticationmanager class to make it possible to unit test all auth classes.

Modified:
    incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java

Modified: incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java
URL: http://svn.apache.org/viewvc/incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java?rev=595685&r1=595684&r2=595685&view=diff
==============================================================================
--- incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java
(original)
+++ incubator/lokahi/lokahi/trunk/src/java/org/apache/lokahi/core/common/authentication/AuthenticationFactory.java
Fri Nov 16 06:45:13 2007
@@ -31,8 +31,7 @@
  */
 public class AuthenticationFactory {
   static final Logger logger = Logger.getLogger(AuthenticationFactory.class);
-  private static final String authenticationModule = PropertiesFile.getConstantValue("AuthenticateModule");
-  private static final Authentication authentication = getAuthentication();
+  private static final Authentication authentication = getAuthentication(PropertiesFile.getConstantValue("AuthenticateModule"));
 
   private AuthenticationFactory() {
   }
@@ -45,7 +44,7 @@
     return ret;
   }
 
-  private static Authentication getAuthentication() {
+  static Authentication getAuthentication(String authenticationModule) {
     Object obj;
     Authentication ret = null;
     try {



Mime
View raw message