package org.crunchytorch.coddy.user.data.in;

public class UpdateUser {

    private String login;
    /**
     * a String type is not security safe. If you dumb the java memory, you will see clearly the password
     */
    private char[] password;

    private String firstName;
    private String lastName;
    private String email;

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public char[] getPassword() {
        return password;
    }

    public void setPassword(char[] password) {
        this.password = password;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}

@@ -330,16 +330,369 @@
 email;%0A%0A
+    public UpdateUser()%7B%0A        // this blank constructor is used by json serialization%0A    %7D%0A%0A    public UpdateUser(String login, char%5B%5D password)%7B%0A        this.login = login;%0A        this.password = password;%0A    %7D%0A%0A    public UpdateUser(String login, char%5B%5D password, String email)%7B%0A        this(login, password);%0A        this.email = email;%0A    %7D%0A%0A
     publ

add updateUser constructors