aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/config/Auth.java
diff options
context:
space:
mode:
authorNathan Lasseter <nathan.je.lasseter@googlemail.com>2011-02-20 14:23:52 +0000
committerNathan Lasseter <nathan.je.lasseter@googlemail.com>2011-02-20 14:23:52 +0000
commit1873252f1ec11794092dcaedaed477afc0572da7 (patch)
tree6e1e7fb41122dc49b344f2ff0ed089d942903268 /src/uk/org/ury/config/Auth.java
parent904caa25f8de49cc20823a25ce8051dfdcae7c26 (diff)
Comment, comment, comment! Shout at me if i dont comment. I tend not to.
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;