Created the AuthenticationDetails helper to help the SimpleAutoResponder understanding which authentication details should be used

This commit is contained in:
mathias 2021-10-01 18:22:46 +02:00
parent c3db497d1b
commit 578ac9e5e9
No known key found for this signature in database
GPG Key ID: 8950DF62139C852A

View File

@ -0,0 +1,39 @@
package de.gnmyt.autoresponder.authentication;
public class AuthenticationDetails {
private final String username;
private final String password;
/**
* Constructor of the {@link AuthenticationDetails}.
* <p>
* Used to help the {@link de.gnmyt.autoresponder.SimpleAutoResponder} for the authentication process
*
* @param username The name of the user you want to use for the authentication
* @param password The password of the user you want to use for the authentication
*/
public AuthenticationDetails(String username, String password) {
this.username = username;
this.password = password;
}
/**
* Gets the username of the authentication
*
* @return the username of the authentication
*/
public String getUsername() {
return username;
}
/**
* Gets the password of the authentication
*
* @return the password of the authentication
*/
public String getPassword() {
return password;
}
}