Created
August 31, 2016 20:32
-
-
Save ITAYC0HEN/ad92229f6ae7f5fdf3c47ec752959b7e to your computer and use it in GitHub Desktop.
[CTF(x) 2016 : WEB] Harambehub – 100 pts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* Created by aashish on 8/26/16. | |
*/ | |
public class User { | |
static List<User> users = new ArrayList<>(); | |
private String username; | |
private String master; | |
private String realName; | |
public User(String username, String password, String realName) { | |
this.username = username; | |
this.master = password; | |
this.realName = realName; | |
users.add(this); | |
} | |
public String getRealName() { | |
return this.realName; | |
} | |
public boolean verify(String username, String password) { | |
return this.username.equals(username) && this.master.matches(password); | |
} | |
public String getUsername() { | |
return username; | |
} | |
@Override | |
public String toString() { | |
return username; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment