com.capitalone.dashboard.request.AuthenticationRequest Maven / Gradle / Ivy
package com.capitalone.dashboard.request;
import com.capitalone.dashboard.model.Authentication;
import javax.validation.constraints.NotNull;
public class AuthenticationRequest extends BaseRequest {
@NotNull
private String username;
@NotNull
private String password;
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public Authentication toAuthentication() {
return new Authentication(username, password);
}
public Authentication copyTo(Authentication authentication) {
Authentication updated = toAuthentication();
updated.setId(authentication.getId());
return updated;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy