use of com.yahoo.athenz.common.config.AthenzConfig in project athenz by yahoo.
the class PolicyUpdaterConfiguration method readAthenzConfiguration.
private AthenzConfig readAthenzConfiguration(String pathToFile) throws IOException {
LOG.info("Reading configuration file: " + pathToFile);
AthenzConfig conf = null;
try {
Path path = Paths.get(pathToFile);
conf = JSON.fromBytes(Files.readAllBytes(path), AthenzConfig.class);
} catch (Exception e) {
}
return conf;
}
Aggregations