removed all checkstyle errors, updated sprint backlog
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / User.java
index 82301eb..19bfabb 100644 (file)
@@ -11,7 +11,7 @@ import ch.bfh.ti.srs.extern.Password;
 import java.util.HashSet;
 import java.util.Set;
 
-public class User implements Cloneable{
+public class User implements Cloneable {
 
        private final String userName;
        private String hashedPassword;
@@ -51,7 +51,8 @@ public class User implements Cloneable{
         *            password
         * @throws IllegalArgumentException
         *             user name or password does not meet requirements
-        * @throws Exception thrown by <code>Password</code> class
+        * @throws Exception
+        *             thrown by <code>Password</code> class
         */
        public User(String userName, String password) throws Exception {
                if (userName == null)
@@ -105,11 +106,14 @@ public class User implements Cloneable{
 
        /**
         * Checks if the given password matches the hashedPassword
-        * 
-        * @param password      password to check
-        * @return      <code>True</code> password accepted, <code>False</code> password rejected
-        * @throws IllegalArgumentException     password is null
-        * @throws Exception thrown by <code>Password</code> class
+        * @param password
+        *            password to check
+        * @return <code>True</code> password accepted, <code>False</code> password
+        *         rejected
+        * @throws IllegalArgumentException
+        *             password is null
+        * @throws Exception
+        *             thrown by <code>Password</code> class
         */
        public boolean checkPassword(String password) throws Exception {
                if (password == null)
@@ -119,10 +123,12 @@ public class User implements Cloneable{
 
        /**
         * Changes the current password
-        * 
-        * @param newPassword   new password
-        * @throws IllegalArgumentException     password does not meet the requirements
-        * @throws Exception thrown by <code>Password</code> class
+        * @param newPassword
+        *            new password
+        * @throws IllegalArgumentException
+        *             password does not meet the requirements
+        * @throws Exception
+        *             thrown by <code>Password</code> class
         */
        public void changePassword(String newPassword) throws Exception {
                if (newPassword == null)
@@ -153,4 +159,4 @@ public class User implements Cloneable{
        public User clone() throws CloneNotSupportedException {
                return (User) super.clone();
        }
-}
\ No newline at end of file
+}