【Java开源代码栏目提醒】:本文主要为网学会员提供AuthenticationSession.java,希望对需要AuthenticationSession.java网友有所帮助,学习一下!
package ejava.ejbch37.authenticationsession;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;
import java.util.Hashtable;
import ejava.servletsch32.Customer;
/**
* AuthenticationSession
* The methods in this interface are the one client calls to
* execute any thing in the AuthenticationSessionEJBean.
* The methods signature are identical to those of the AuthenticationSessionEJBean,
* except that these methods throw a java.rmi.RemoteException.
* EJBean does not implement this interface.
* The corresponding code-generated EJBObject (ejb compiler comes with
* the application Container) implements this interface
* and delegates to the AuthenticationSessionEJBean.
*/
public interface AuthenticationSession extends EJBObject
{
/**
* to authenticate the user
*/
public ejava.servletsch32.Customer login(String email, String password)
throws RemoteException, FailedToLoginException;
/**
* to register new Customer
*/
public int register(ejava.servletsch32.Customer customer)
throws RemoteException, FailedToRegisterException;
/**
* to reming the user pass
word */
public boolean remindPassword(String email)
throws RemoteException;
}