package domain;
+import java.util.Arrays;
+
import businessLogic.SecurityManager;
public class Account {
+
+
private byte[] username;
private byte[] password;
private byte[] salt;
public void setSalt(byte[] salt) {
this.salt = salt;
}
+
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ 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;
+ }
}