Advertisement
Guest User

Untitled

a guest
May 26th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.83 KB | None | 0 0
  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package nl.fontys.pro.web;
  6.  
  7. import java.io.Serializable;
  8.  
  9. /**
  10.  *
  11.  * @author Dennis Pawlik
  12.  */
  13. public class UserBean implements Serializable {
  14.  
  15.     private String user;
  16.     private String password;
  17.  
  18.     public UserBean() {
  19.     }
  20.  
  21.     public String getUser() {
  22.         return user;
  23.     }
  24.  
  25.     public String getPassword() {
  26.         return password;
  27.     }
  28.  
  29.     public void setUser(String user) {
  30.         this.user = user;
  31.     }
  32.  
  33.     public void setPassword(String password) {
  34.         this.password = password;
  35.     }
  36.  
  37.     public boolean checkLogin(UserBeanMapper mapper) {
  38.         if (mapper.getPassword(this).equals(password)) {
  39.             return true;
  40.         } else {
  41.             return false;
  42.         }
  43.     }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement