iauthentication.java

来自「《基于Eclipse的开源框架技术与实战》[第5章]随书源码」· Java 代码 · 共 32 行

JAVA
32
字号
package com.free.struts.storefront.framework.security;

import com.free.struts.storefront.customer.view.UserView;
import com.free.struts.storefront.framework.exceptions.AccountLockedException;
import com.free.struts.storefront.framework.exceptions.DatastoreException;
import com.free.struts.storefront.framework.exceptions.ExpiredPasswordException;
import com.free.struts.storefront.framework.exceptions.InvalidLoginException;

/**
 * <p>Title: Eclipse Plugin Development</p>
 * <p>Description: Free download</p>
 * <p>Copyright: Copyright (c) 2006</p>
 * <p>Company: Free</p>
 * @author gan.shu.man
 * @version 1.0
 */

public interface IAuthentication {

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

  /**
   * Authenticate the user's credentials and either return a UserView for the
   * user or throw one of the security exceptions.
   */
  public UserView authenticate(String email, String password) throws
  InvalidLoginException,ExpiredPasswordException,AccountLockedException,DatastoreException;
}

⌨️ 快捷键说明

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