/**
* A user login container
* <p>
- * @author Roland Haeder
+ * @author Roland Haeder<roland@mxchange.org>
*/
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