Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/auth/AuthenticationFactory.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | ea9eef426962 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8855:d7c005e12af0 | 8856:5e38e2924c07 |
---|---|
17 | 17 |
18 public static Authenticator getInstance(String name) | 18 public static Authenticator getInstance(String name) |
19 throws IllegalArgumentException | 19 throws IllegalArgumentException |
20 { | 20 { |
21 if (name == null) { | 21 if (name == null) { |
22 throw new IllegalArgumentException("Authentication type name is null"); | 22 throw new IllegalArgumentException( |
23 "Authentication type name is null"); | |
23 } | 24 } |
24 | 25 |
25 if (name.equalsIgnoreCase("was") || | 26 if (name.equalsIgnoreCase("was") || |
26 name.equalsIgnoreCase("ggina")) { | 27 name.equalsIgnoreCase("ggina")) { |
27 log.debug("Using GGinA authenticator."); | 28 log.debug("Using GGinA authenticator."); |
28 return | 29 return |
29 new org.dive4elements.river.client.server.auth.was.Authenticator(); | 30 new org.dive4elements.river.client.server.auth.was |
31 .Authenticator(); | |
30 } | 32 } |
31 else if (name.equalsIgnoreCase("plain")) { | 33 else if (name.equalsIgnoreCase("plain")) { |
32 log.debug("Using plain authenticator."); | 34 log.debug("Using plain authenticator."); |
33 return | 35 return |
34 new org.dive4elements.river.client.server.auth.plain.Authenticator(); | 36 new org.dive4elements.river.client.server.auth.plain |
37 .Authenticator(); | |
35 } | 38 } |
36 | 39 |
37 throw new IllegalArgumentException("Unkown Authentication " + name); | 40 throw new IllegalArgumentException("Unkown Authentication " + name); |
38 } | 41 } |
39 } | 42 } |