created User class
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / core / User.java
1 package ch.bfh.ti.srs.core;
2
3 public class User {
4
5 private final String userName;
6 private String password;
7
8 public User(String name, String password){
9 this.userName = name;
10 this.password = password;
11 }
12
13 public String getUserName(){
14 return userName;
15 }
16
17 public boolean checkPassword(String password){
18 return Password.checkPassword(password, this.password);
19 }
20 }