3 import java.io.Serializable;
4 import java.util.Arrays;
7 public class Account implements Serializable {
12 private static final long serialVersionUID = 1L;
15 private byte[] username;
16 private byte[] password;
21 private boolean admin = false;
23 public Account(byte[] usr){
27 public Account(String usr, String pass, boolean isAdmin) {
32 public Account(String usr, String pass, Owner ow) {
40 public byte[] getUsername() {
44 public byte[] getPassword() {
48 public Owner getOwner() {
52 public boolean getAdmin() {
57 public void setAdmin(boolean admin) {
61 public byte[] getSalt() {
65 public void setSalt(byte[] salt) {
71 public boolean equals(Object obj) {
76 if (getClass() != obj.getClass())
78 Account other = (Account) obj;
79 if (!Arrays.equals(username, other.username))