bjoern@2956: package de.intevation.flys.client.server.auth; bjoern@2956: bjoern@2956: import java.lang.IllegalArgumentException; bjoern@2956: bjoern@2956: public class AuthenticationFactory { bjoern@2956: bjoern@2956: public static Authenticator getInstance(String name) bjoern@2956: throws IllegalArgumentException { bjoern@2956: if (name == null || name.equalsIgnoreCase("was") || bjoern@2956: name.equalsIgnoreCase("ggina")) { bjoern@2956: return new de.intevation.flys.client.server.auth.was.Authenticator(); bjoern@2956: } bjoern@2956: throw new IllegalArgumentException("Unkown Authentication " + name); bjoern@2956: } bjoern@2956: }