diff flys-client/src/main/java/de/intevation/flys/client/server/auth/AuthenticationFactory.java @ 2959:5ba0a6efdf3b

Auth: added simple file based authentication. flys-client/trunk@4939 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 11 Jul 2012 14:53:33 +0000
parents d7f76f197d89
children 1f64ee424f92
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/server/auth/AuthenticationFactory.java	Wed Jul 11 13:47:19 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/auth/AuthenticationFactory.java	Wed Jul 11 14:53:33 2012 +0000
@@ -6,9 +6,15 @@
 
     public static Authenticator getInstance(String name)
         throws IllegalArgumentException {
-        if (name == null || name.equalsIgnoreCase("was") ||
-                name.equalsIgnoreCase("ggina")) {
-            return new de.intevation.flys.client.server.auth.was.Authenticator();
+        if (name == null
+        || name.equalsIgnoreCase("was")
+        || name.equalsIgnoreCase("ggina")) {
+            return
+                new de.intevation.flys.client.server.auth.was.Authenticator();
+        }
+        if (name.equalsIgnoreCase("plain")) {
+            return
+                new de.intevation.flys.client.server.auth.plain.Authenticator();
         }
         throw new IllegalArgumentException("Unkown Authentication " + name);
     }

http://dive4elements.wald.intevation.org