From 578ac9e5e9f01678423ce03d91cf22e81cb4f5b8 Mon Sep 17 00:00:00 2001 From: mathias Date: Fri, 1 Oct 2021 18:22:46 +0200 Subject: [PATCH] Created the AuthenticationDetails helper to help the SimpleAutoResponder understanding which authentication details should be used --- .../authentication/AuthenticationDetails.java | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/main/java/de/gnmyt/autoresponder/authentication/AuthenticationDetails.java diff --git a/src/main/java/de/gnmyt/autoresponder/authentication/AuthenticationDetails.java b/src/main/java/de/gnmyt/autoresponder/authentication/AuthenticationDetails.java new file mode 100644 index 0000000..d1e3a59 --- /dev/null +++ b/src/main/java/de/gnmyt/autoresponder/authentication/AuthenticationDetails.java @@ -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}. + *

+ * 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; + } + +}