]> git.mxchange.org Git - juser-login-core.git/blobdiff - src/org/mxchange/jusercore/model/user/UserUtils.java
use interface, not class ...
[juser-login-core.git] / src / org / mxchange / jusercore / model / user / UserUtils.java
index 82a041b74892f175f4d72d71af48cde69e9f9871..daa47e82df415c0cfade5d38d9aef931e87b66d6 100644 (file)
  */
 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
@@ -46,6 +45,11 @@ public class UserUtils extends BaseFrameworkSystem {
         */
        private static final Random RANDOM_NUMBER_GENERATOR;
 
+       /**
+        * Serial number
+        */
+       private static final long serialVersionUID = 18_356_847_120_972L;
+
        /**
         * Static initializer
         */
@@ -123,7 +127,7 @@ public class UserUtils extends BaseFrameworkSystem {
        /**
         * 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
@@ -157,11 +161,11 @@ public class UserUtils extends BaseFrameworkSystem {
        /**
         * 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