aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/config/Auth.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/uk/org/ury/config/Auth.java')
-rw-r--r--src/uk/org/ury/config/Auth.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/uk/org/ury/config/Auth.java b/src/uk/org/ury/config/Auth.java
index ff22c12..d68fc55 100644
--- a/src/uk/org/ury/config/Auth.java
+++ b/src/uk/org/ury/config/Auth.java
@@ -2,16 +2,42 @@ package uk.org.ury.config;
import uk.org.ury.database.UserClass;
+/**
+ * A login authorisation configuration
+ *
+ * @author Nathan
+ */
public class Auth {
private String user;
private String pass;
private UserClass type;
+ /**
+ * 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; }
+ /**
+ * Get the access level of the login
+ *
+ * @return UserClass type
+ */
public UserClass getType() { return type; }
+ /**
+ * Create a login auth object
+ * @param user The username for the login
+ * @param pass The password for the login
+ * @param type The access type for the login
+ */
public Auth(String user, String pass, UserClass type) {
this.user = user;
this.pass = pass;