01 package net.sf.annocon.examples.basic.authentication;
02
03 /**
04 * Implementation of {@link net.sf.annocon.examples.basic.authentication.UserManager}.
05 * Works with hard coded users.
06 *
07 * @author Achim Huegen
08 */
09 public class SimpleUserManager implements UserManager
10 {
11
12 public String getUserData(String username)
13 {
14 if (username.equals("admin"))
15 return "changeme";
16 else if (username.equals("customer"))
17 return "test123";
18 return null;
19 }
20
21 }
|