Guest User

Untitled

a guest
Dec 7th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. class UserService {
  2. Set<User> users = new HashSet<>();
  3.  
  4. {
  5. User user = new User();
  6. user.username = "adrianvdh";
  7. user.password = "hello123";
  8. users.add(user);
  9. }
  10.  
  11. public User authenicate(String username, String password) {
  12. return users.get(0);
  13. }
  14. }
Add Comment
Please, Sign In to add comment