iauthentication.java

来自「网上商店 新增功能: 1」· Java 代码 · 共 29 行

JAVA
29
字号
package netstore.framework.security;

import netstore.businessobjects.Customer;
import netstore.framework.exceptions.InvalidLoginException;
import netstore.framework.exceptions.ExpiredPasswordException;
import netstore.framework.exceptions.AccountLockedException;
import netstore.framework.exceptions.DatastoreException;

/**
 * Defines the security methods for the system. 一个认证的接口
 */
public interface IAuthentication {

	/**
	 * Log the customer out of the system. 
	 * 注销
	 */
	public void logout(String email);

	/**
	 * Authenticate the customer's credentials and either return a Customer or
	 * throw one of the security exceptions.
	 * 认证客户,成功返回一个客户对象,失败抛出异常(登录不正确,密码过期,帐号暂停,数据存取异常)
	 */
	public Customer authenticate(String email, String password)
			throws InvalidLoginException, ExpiredPasswordException,
			AccountLockedException, DatastoreException;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?