/*
- * 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
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;
/**
* 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;
}