aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/backend/config/Auth.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/org/ury/backend/config/Auth.java')
-rw-r--r--src/uk/org/ury/backend/config/Auth.java36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/uk/org/ury/backend/config/Auth.java b/src/uk/org/ury/backend/config/Auth.java
new file mode 100644
index 0000000..46660e5
--- /dev/null
+++ b/src/uk/org/ury/backend/config/Auth.java
@@ -0,0 +1,36 @@
+package uk.org.ury.backend.config;
+
+/**
+ * A login authorisation configuration
+ *
+ * @author Nathan Lasseter
+ */
+public class Auth {
+
+ private String user;
+ private String pass;
+
+ /**
+ * Get the username of the login
+ *
+ * @return String username
+ */
+ public String getUser() { return user; }
+ /**
+ * Get the password of the login
+ *
+ * @return String password
+ */
+ public String getPass() { return pass; }
+
+ /**
+ * Create a login auth object
+ * @param user The username for the login
+ * @param pass The password for the login
+ */
+ public Auth(String user, String pass) {
+ this.user = user;
+ this.pass = pass;
+ }
+
+} \ No newline at end of file