diff options
author | Matt Windsor <mbw500@student.cs.york.ac.uk> | 2011-02-20 23:49:42 +0000 |
---|---|---|
committer | Matt Windsor <mbw500@student.cs.york.ac.uk> | 2011-02-20 23:49:42 +0000 |
commit | cd972012ab8c40b66bd65f78bbf9e3422413b1aa (patch) | |
tree | 726aa9cefa80fc4a2f3922ed6e05cf0074421a6d /src/uk/org/ury/config/Auth.java | |
parent | e2fc92f5c42dde942e8b71d38b9745b6f3c98053 (diff) | |
parent | f89ef9ed36e8185f53c7d5f22f91935e2c4ccaa0 (diff) |
Merge. DatabaseLogin over. Auth = Very Yes.
Diffstat (limited to 'src/uk/org/ury/config/Auth.java')
-rw-r--r-- | src/uk/org/ury/config/Auth.java | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/src/uk/org/ury/config/Auth.java b/src/uk/org/ury/config/Auth.java index ff22c12..81be6e2 100644 --- a/src/uk/org/ury/config/Auth.java +++ b/src/uk/org/ury/config/Auth.java @@ -1,21 +1,36 @@ package uk.org.ury.config; -import uk.org.ury.database.UserClass; - +/** + * A login authorisation configuration + * + * @author Nathan Lasseter + */ 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; } - public UserClass getType() { return type; } - public Auth(String user, String pass, UserClass type) { + /** + * 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; - this.type = type; } }
\ No newline at end of file |