import java.io.Serializable;
import java.util.Arrays;
-
public class Account implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
-
private byte[] username;
private byte[] password;
private byte[] salt;
-
private Owner owner;
private boolean admin = false;
- public Account(byte[] usr){
-
-
+ public Account(byte[] usr) {
+
}
- public Account(String usr, String pass, boolean isAdmin) {
-
+ public Account(Owner own) {
}
- public Account(String usr, String pass, Owner ow) {
-
+ public Account(String usr, String pass, boolean isAdmin) {
}
+ public Account(String usr, String pass, Owner ow) {
-
+ }
public byte[] getUsername() {
return username;
return admin;
}
-
public void setAdmin(boolean admin) {
this.admin = admin;
}
public void setSalt(byte[] salt) {
this.salt = salt;
}
-
@Override
public boolean equals(Object obj) {