class FileData implements IAuthDataAccess {

	@Override 
	public AuthReport checkAllowed(Api api, String authKey) {

		AuthReport authReport = new AuthReport();
		if(logger.isDebugEnabled()) {
			logger.debug("Lookup if AuthKey:" + authKey + " is associated with appId:" + api.getId());
		}
		
		String appId = findString(api.getId(), authKey);
		
		if(appId != null) {
			
			AuthIdentityHelper authIdentityHelper = new AuthIdentityHelper();
			
			authIdentityHelper.setApi(api.getId());
			authIdentityHelper.setAppId(appId);
			authIdentityHelper.setAuth(authKey);
			
			authReport.setAuthIdentity( authIdentityHelper.getAuthIdentity());
			authReport.setApiActive(true);
			
		} else {
			authReport.setNotAuthorized(true);
		}
		
		return authReport;
	}

	public  FileData(String filePath);

}