securityadapter.java

来自「一个优秀的供应商管理系统」· Java 代码 · 共 35 行

JAVA
35
字号
package apusic.myshop.util;import apusic.myshop.customer.ejb.DuplicateAccountException;import javax.servlet.http.HttpSession;/** * This interface is implemented by a class that contains * non-portable security code. * @author Greg Murray */ //安全组public interface SecurityAdapter {   /**   * This method adds a user with the specified password to   * the specified group within a realm.   *   * @throws  DupplicateAccountException if the userName   *          already exists   */   public void addUser(String realmName, String group, String userName, String password)      throws DuplicateAccountException;   /**   * Programatically Logs a user into the form based login   * mechamism of a web server when a new account is created.   * This prevents the user from having to log in after   * a new account is created.   */   public void loginUser(String userName, String password, HttpSession session);}

⌨️ 快捷键说明

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