*/
package org.mxchange.jusercore.model.user;
+import java.io.Serializable;
import java.security.SecureRandom;
import java.text.MessageFormat;
import java.util.Random;
import org.apache.commons.codec.digest.Crypt;
-import org.mxchange.jcore.BaseFrameworkSystem;
import org.mxchange.jusercore.container.login.LoginContainer;
-import org.mxchange.jusercore.container.login.UserLoginContainer;
/**
* An utilities class for users
* <p>
* @author Roland Haeder<roland@mxchange.org>
*/
-public class UserUtils extends BaseFrameworkSystem {
+public class UserUtils implements Serializable {
/**
* Password alphabet
*/
private static final Random RANDOM_NUMBER_GENERATOR;
+ /**
+ * Serial number
+ */
+ private static final long serialVersionUID = 18_356_847_120_972L;
+
/**
* Static initializer
*/
/**
* Checks if password from container matches the updatedUser's password
* <p>
- * @param container Container holding user instance and unencrypted password
+ * @param container Container holding user instance and unencrypted password
* @param updatedUser Updated user instance from database
* <p>
* @return Whether the password matches
/**
* Checks if password from container matches with from user instance.
* <p>
- * @param container Container holding user instance and unencrypted password
+ * @param container Container holding user instance and unencrypted password
* <p>
* @return Whether it maches
*/
- public static boolean ifPasswordMatches (final UserLoginContainer container) {
+ public static boolean ifPasswordMatches (final LoginContainer container) {
// Validate parameters
if (null == container) {
// Throw NPE