/** * Gets the API keys from the database. Gets the session for db access. The session is specified * by parameters in CoreConfig including CoreConfig.getAgencyId() for the name of the database * (such as "web") and CoreConfig.getDbHost(), CoreConfig.getDbUserName(), and * CoreConfig.getDbPassword(). The db host, user name, and password can also be set in the * hibernate.cfg.xml file if the parameter transitime.hibernate.configFile in the CoreConfig is * set. * * @return */ public List<ApiKey> getApiKeys() { Session session = HibernateUtils.getSession(DbSetupConfig.getDbName()); return ApiKey.getApiKeys(session); }