]> git.mxchange.org Git - juser-login-lib.git/blobdiff - src/org/mxchange/jusercore/model/login/UserLoginSessionBeanRemote.java
unencrypted ... better clear-text ...
[juser-login-lib.git] / src / org / mxchange / jusercore / model / login / UserLoginSessionBeanRemote.java
index 1ddcce09c7879b7c45f4ecefd21cf6f4e3ee7efa..157ff31ba28b4e531feff24ecea2603a6370856a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Roland Haeder
+ * Copyright (C) 2016 Roland Häder
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -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;
@@ -26,18 +28,27 @@ import org.mxchange.jusercore.model.user.User;
 /**
  * A remote interface for user login
  * <p>
- * @author Roland Haeder
+ * @author Roland Häder<roland@mxchange.org>
  */
 @Remote
 public interface UserLoginSessionBeanRemote extends Serializable {
 
        /**
-        * Registers given user data, if not yet found
+        * Validates if the user is a confirmed account and returns the full user
+        * instance
         * <p>
-        * @param user User instance to register
-        * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the user account was not found
-        * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If the user account is locked
-        * @throws org.mxchange.jusercore.exceptions.UserStatusUnconfirmedException If the user account is unconfirmed
+        * @param container Login container holding user instance and clear-text password
+        * <p>
+        * @return Full confirmed user account
+        * <p>
+        * @throws org.mxchange.jusercore.exceptions.UserNotFoundException If the
+        * user account was not found
+        * @throws org.mxchange.jusercore.exceptions.UserStatusLockedException If
+        * 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 void loginUser (final User user) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException;
+       User validateUserAccountStatus (final LoginContainer container) throws UserNotFoundException, UserStatusLockedException, UserStatusUnconfirmedException, UserPasswordMismatchException;
 }