AuthenticationRequest.java
/**
* TFG 75.678 - TFG Desarrollo web 2020 e-Learning for Schools
* Copyright (C) 2020 Eduardo Rodriguez Carro
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.uoc.tfg.sel.security.model;
/**
* Peticion de Token de Autenticacion JWT.
*
* @author Eduardo Rodriguez Carro
*/
public class AuthenticationRequest {
/** User name. */
private String username;
/** Password. */
private String password;
/**
* Instantiates a new authentication request.
*/
public AuthenticationRequest() {
/* Required by Jackson JSON */
}
/**
* Instantiates a new authentication request.
*
* @param username the username
* @param password the password
*/
public AuthenticationRequest(String username, String password) {
this.setUsername(username);
this.setPassword(password);
}
/**
* Gets the username.
*
* @return the username
*/
public String getUsername() {
return this.username;
}
/**
* Sets the username.
*
* @param username the new username
*/
public void setUsername(String username) {
this.username = username;
}
/**
* Gets the password.
*
* @return the password
*/
public String getPassword() {
return this.password;
}
/**
* Sets the password.
*
* @param password the new password
*/
public void setPassword(String password) {
this.password = password;
}
}