package com.eactive.httpmockserver.user.dto;

import com.eactive.httpmockserver.common.validator.PasswordMatch;

import javax.validation.constraints.NotEmpty;

@PasswordMatch(input = "newPassword", confirm = "newPassword2")
public class PasswordChangeRequestDTO {

    @NotEmpty(message = "{field.required}")
    private String oldPassword;

    @NotEmpty(message = "{field.required}")
    private String newPassword;

    @NotEmpty(message = "{field.required}")
    private String newPassword2;

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    public String getNewPassword2() {
        return newPassword2;
    }

    public void setNewPassword2(String newPassword2) {
        this.newPassword2 = newPassword2;
    }
}
