RESTAuthentication.java
上传用户:gdxydsw
上传日期:2019-01-29
资源大小:16721k
文件大小:0k
源码类别:

Java编程

开发平台:

Java

  1. /*
  2.  * Created on 04/09/2006 21:59:39
  3.  */
  4. package net.jforum.api.rest;
  5. import net.jforum.dao.ApiDAO;
  6. import net.jforum.dao.DataAccessDriver;
  7. /**
  8.  * @author Rafael Steil
  9.  * @version $Id: RESTAuthentication.java,v 1.2 2006/10/10 00:49:04 rafaelsteil Exp $
  10.  */
  11. public class RESTAuthentication
  12. {
  13. public boolean validateApiKey(String apiKey)
  14. {
  15. ApiDAO dao = DataAccessDriver.getInstance().newApiDAO();
  16. return dao.isValid(apiKey);
  17. }
  18. }