private boolean admin = false;
- public Account(String usr){
- this.username = SecurityManager.getInstance().calculateHash(usr);
+ public Account(byte[] usr){
+ this.username = usr;
this.salt =null;
this.password = null;
this.owner = null;
}
+
public byte[] getUsername() {
return username;
}
if (getClass() != obj.getClass())
return false;
Account other = (Account) obj;
- if (!Arrays.equals(password, other.password))
- return false;
if (!Arrays.equals(username, other.username))
return false;
return true;