01: /*
02: * Created on 04/09/2006 21:59:39
03: */
04: package net.jforum.api.rest;
05:
06: import net.jforum.dao.ApiDAO;
07: import net.jforum.dao.DataAccessDriver;
08:
09: /**
10: * @author Rafael Steil
11: * @version $Id: RESTAuthentication.java,v 1.2 2006/10/10 00:49:04 rafaelsteil Exp $
12: */
13: public class RESTAuthentication {
14: public boolean validateApiKey(String apiKey) {
15: ApiDAO dao = DataAccessDriver.getInstance().newApiDAO();
16: return dao.isValid(apiKey);
17: }
18: }
|