in java/src/main/java/com/alexa/awisapi/CognitoHelper.java [50:79]
public CognitoHelper() {
Properties prop = new Properties();
InputStream input = null;
try {
input = getClass().getClassLoader().getResourceAsStream("config.properties");
// load a properties file
prop.load(input);
// Read the property values
POOL_ID = prop.getProperty("POOL_ID");
CLIENTAPP_ID = prop.getProperty("CLIENTAPP_ID");
FED_POOL_ID = prop.getProperty("FED_POOL_ID");
CUSTOMDOMAIN = prop.getProperty("CUSTOMDOMAIN");
REGION = prop.getProperty("REGION");
} catch (IOException ex) {
ex.printStackTrace();
} finally {
if (input != null) {
try {
input.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}