Mercurial > dive4elements > river
comparison flys-client/src/main/java/org/dive4elements/river/client/server/auth/plain/Authenticator.java @ 5835:821a02bbfb4e
Fixed internal java dependencies
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 13:12:15 +0200 |
parents | f507086aa94b |
children |
comparison
equal
deleted
inserted
replaced
5834:f507086aa94b | 5835:821a02bbfb4e |
---|---|
1 package de.intevation.flys.client.server.auth.plain; | 1 package org.dive4elements.river.client.server.auth.plain; |
2 | 2 |
3 import de.intevation.flys.client.server.auth.AuthenticationException; | 3 import org.dive4elements.river.client.server.auth.AuthenticationException; |
4 import de.intevation.flys.client.server.auth.DefaultUser; | 4 import org.dive4elements.river.client.server.auth.DefaultUser; |
5 import de.intevation.flys.client.server.auth.User; | 5 import org.dive4elements.river.client.server.auth.User; |
6 | 6 |
7 import java.io.BufferedReader; | 7 import java.io.BufferedReader; |
8 import java.io.File; | 8 import java.io.File; |
9 import java.io.FileReader; | 9 import java.io.FileReader; |
10 import java.io.IOException; | 10 import java.io.IOException; |
12 import java.util.ArrayList; | 12 import java.util.ArrayList; |
13 import java.util.List; | 13 import java.util.List; |
14 | 14 |
15 import org.apache.log4j.Logger; | 15 import org.apache.log4j.Logger; |
16 | 16 |
17 import de.intevation.flys.client.server.features.Features; | 17 import org.dive4elements.river.client.server.features.Features; |
18 | 18 |
19 /** | 19 /** |
20 * Authenticator that uses a local file as user backend. | 20 * Authenticator that uses a local file as user backend. |
21 */ | 21 */ |
22 public class Authenticator | 22 public class Authenticator |
23 implements de.intevation.flys.client.server.auth.Authenticator | 23 implements org.dive4elements.river.client.server.auth.Authenticator |
24 { | 24 { |
25 private static final Logger log = | 25 private static final Logger log = |
26 Logger.getLogger(Authenticator.class); | 26 Logger.getLogger(Authenticator.class); |
27 | 27 |
28 public static class Authentication | 28 public static class Authentication |
29 implements de.intevation.flys.client.server.auth.Authentication | 29 implements org.dive4elements.river.client.server.auth.Authentication |
30 { | 30 { |
31 protected String user; | 31 protected String user; |
32 protected String password; | 32 protected String password; |
33 protected List<String> roles; | 33 protected List<String> roles; |
34 protected Features features; | 34 protected Features features; |
74 return new File(env); | 74 return new File(env); |
75 | 75 |
76 } | 76 } |
77 | 77 |
78 @Override | 78 @Override |
79 public de.intevation.flys.client.server.auth.Authentication auth( | 79 public org.dive4elements.river.client.server.auth.Authentication auth( |
80 String username, | 80 String username, |
81 String password, | 81 String password, |
82 String encoding, | 82 String encoding, |
83 Features features | 83 Features features |
84 ) | 84 ) |