created User class
authorMatthias <balmm1@bfh.ch>
Wed, 21 Oct 2015 08:58:57 +0000 (10:58 +0200)
committerMatthias <balmm1@bfh.ch>
Wed, 21 Oct 2015 08:58:57 +0000 (10:58 +0200)
src/main/java/ch/bfh/ti/srs/core/User.java [new file with mode: 0644]

diff --git a/src/main/java/ch/bfh/ti/srs/core/User.java b/src/main/java/ch/bfh/ti/srs/core/User.java
new file mode 100644 (file)
index 0000000..e1fd775
--- /dev/null
@@ -0,0 +1,20 @@
+package ch.bfh.ti.srs.core;
+
+public class User {
+       
+       private final String userName;
+       private String password;
+       
+       public User(String name, String password){
+               this.userName = name;
+               this.password = password;
+       }
+       
+       public String getUserName(){
+               return userName;
+       }
+       
+       public boolean checkPassword(String password){
+               return Password.checkPassword(password, this.password);
+       }
+}
\ No newline at end of file