3 import java.io.Serializable;
4 import java.util.Arrays;
8 public class Account implements Serializable {
13 private static final long serialVersionUID = 1L;
16 private byte[] username;
17 private byte[] password;
22 private boolean admin = false;
27 public byte[] getUsername() {
31 public byte[] getPassword() {
35 public Owner getOwner() {
39 public boolean getAdmin() {
43 public void setAdmin(boolean admin) {
47 public byte[] getSalt() {
51 public void setSalt(byte[] salt) {
57 public boolean equals(Object obj) {
62 if (getClass() != obj.getClass())
64 Account other = (Account) obj;
65 if (!Arrays.equals(password, other.password))
67 if (!Arrays.equals(username, other.username))