]> git.mxchange.org Git - juser-login-core.git/blobdiff - src/org/mxchange/jusercore/container/login/UserLoginContainer.java
Don't do these checks on login phase as they are only available after login
[juser-login-core.git] / src / org / mxchange / jusercore / container / login / UserLoginContainer.java
index db80dca036fddee6d80473350279e0f887ca4bb5..f54a3ba0a4496e7e000c991b2d9d7a6d345b2af0 100644 (file)
@@ -21,7 +21,7 @@ import org.mxchange.jusercore.model.user.User;
 /**
  * A user login container
  * <p>
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
  */
 public class UserLoginContainer implements LoginContainer {
 
@@ -41,22 +41,22 @@ public class UserLoginContainer implements LoginContainer {
        private String userPassword;
 
        /**
-        * Constructot with user instance and unencrypted password
+        * Constructor with user instance and unencrypted password
         * <p>
-        * @param user User instance
+        * @param user         User instance
         * @param userPassword Unencrypted password
         */
        public UserLoginContainer (final User user, final String userPassword) {
                // Is both set?
                if (null == user) {
                        // Throw NPE
-                       throw new NullPointerException("user is null");
+                       throw new NullPointerException("user is null"); //NOI18N
                } else if (null == userPassword) {
                        // Throw NPE again
-                       throw new NullPointerException("userPassword is null");
+                       throw new NullPointerException("userPassword is null"); //NOI18N
                } else if (userPassword.isEmpty()) {
                        // Empty password
-                       throw new IllegalArgumentException("user password is empty.");
+                       throw new IllegalArgumentException("user password is empty."); //NOI18N
                }
 
                // Set both