]> git.mxchange.org Git - juser-login-lib.git/blobdiff - src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java
added thrown exception + updated jar(s)
[juser-login-lib.git] / src / org / mxchange / jusercore / model / login / UserLoginSessionBeanRemote.java
index 453ccb0d80b50cd3fbddb5a1d35a673ac9255434..17699eb6d4fb7eb38a3a282099b906ac0015b17c 100644 (file)
@@ -18,7 +18,9 @@ package org.mxchange.jusercore.model.login;
 
 import java.io.Serializable;
 import javax.ejb.Remote;
+import org.mxchange.jusercore.container.login.LoginContainer;
 import org.mxchange.jusercore.exceptions.UserNotFoundException;
+import org.mxchange.jusercore.exceptions.UserPasswordMismatchException;
 import org.mxchange.jusercore.exceptions.UserStatusLockedException;
 import org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException;
 import org.mxchange.jusercore.model.user.User;
@@ -35,7 +37,8 @@ public interface UserLoginSessionBeanRemote extends Serializable {
         * Validates if the user is a confirmed account and returns the full user
         * instance
         * <p>
-        * @param user User instance to register
+        * @param container Login container holding user instance and unencrypted
+        * password
         * <p>
         * @return Full confirmed user account
         * <p>
@@ -45,6 +48,8 @@ public interface UserLoginSessionBeanRemote extends Serializable {
         * the user account is locked
         * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException
         * If the user account is unconfirmed
+        * @throws org.mxchange.jusercore.exceptions.UserPasswordMismatchException
+        * If the password is not matching
         */
-       public User validateUserAccountStatus (final User user) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException;
+       public User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException;
 }