All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.capitalone.dashboard.request.AuthenticationRequest Maven / Gradle / Ivy

There is a newer version: 3.4.53
Show newest version
package com.capitalone.dashboard.request;

import javax.validation.constraints.NotNull;

import com.capitalone.dashboard.model.Authentication;

public class AuthenticationRequest {

    @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 - 2024 Weber Informatics LLC | Privacy Policy