From: Roland Häder Date: Thu, 20 Apr 2017 19:11:53 +0000 (+0200) Subject: Opps, to much renamed ... ;-) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3bc5e8dfc464bf2342d58d83d606cd35563c87bd;p=juser-core.git Opps, to much renamed ... ;-) Signed-off-by: Roland Häder --- diff --git a/src/org/mxchange/jusercore/model/user/UserUtils.java b/src/org/mxchange/jusercore/model/user/UserUtils.java index ce04147..3f7968e 100644 --- a/src/org/mxchange/jusercore/model/user/UserUtils.java +++ b/src/org/mxchange/jusercore/model/user/UserUtils.java @@ -456,26 +456,26 @@ public class UserUtils implements Serializable { /** * Checks if direct password the updatedUser's password *

- * @param clear-textPassword Clear-text (direct) password + * @param clearTextPassword Clear-text (direct) password * @param updatedUser Updated user instance from database *

* @return Whether the password matches */ - public static boolean ifPasswordMatches (final String clear-textPassword, final User updatedUser) { + public static boolean ifPasswordMatches (final String clearTextPassword, final User updatedUser) { // Validate parameters - if (null == clear-textPassword) { + if (null == clearTextPassword) { // Throw NPE - throw new NullPointerException("clear-textPassword is null"); //NOI18N - } else if (clear-textPassword.isEmpty()) { + throw new NullPointerException("clearTextPassword is null"); //NOI18N + } else if (clearTextPassword.isEmpty()) { // NPE for user in container - throw new NullPointerException("clear-textPassword is empty."); //NOI18N + throw new NullPointerException("clearTextPassword is empty."); //NOI18N } else if (null == updatedUser) { // And again NPE ... throw new NullPointerException("updatedUser is null"); //NOI18N } // First encrypt password - String encryptedPassword = Crypt.crypt(clear-textPassword, updatedUser.getUserEncryptedPassword()); + String encryptedPassword = Crypt.crypt(clearTextPassword, updatedUser.getUserEncryptedPassword()); // Is it matching? return encryptedPassword.equals(updatedUser.getUserEncryptedPassword());