⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject.java

📁 java开源的企业总线.xmlBlaster
💻 JAVA
字号:
package org.xmlBlaster.authentication.plugins.simple;import org.xmlBlaster.authentication.plugins.I_Subject;import org.xmlBlaster.util.Global;import org.xmlBlaster.util.XmlBlasterException;import org.xmlBlaster.util.def.MethodName;import java.util.logging.Logger;/** * @author  $Author: laghi $ ($Name:  $) * @version $Revision: 1.6 $ (State: $State) (Date: $Date: 2006-03-05 00:02:48 +0100 (So, 05 Mär 2006) $) */public class Subject implements I_Subject {   private static Logger log = Logger.getLogger(Subject.class.getName());   private String name = null;   public Subject(Global glob) {      this(glob, null);   }   public Subject(Global glob, String userId) {      this.name = userId;   }   public void init(String userId) {      this.name = userId;   }   public String getName() {      return name;   }   /**    * Authenticate the user    * <p/>    * @param String Password    * @exception XmlBlasterException Thrown if the user has no valid proof of his identity    */   void authenticate(String passwd) throws XmlBlasterException {      // throw new XmlBlasterException(ME + ".authenticationFailed", "Wrong identity!");      // dummy implementation      log.info("Access for " + getName() + " granted, without further checks.");   }}

⌨️ 快捷键说明

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