Interface PolicyAnalyzerService
-
- All Known Implementing Classes:
PolicyAnalyzerServiceImpl
public interface PolicyAnalyzerService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ScanResultsanalyze(List<PolicyContext> policies)Using the supplied List of Policies, execute each Policy's Rules (SQL query) against the database credentials provided in MagpieConfig.List<Map<String,Object>>evaluate(Rule rule, Object resultSet)voidinit(MagpieConfig config)
-
-
-
Method Detail
-
init
void init(MagpieConfig config)
-
analyze
ScanResults analyze(List<PolicyContext> policies) throws Exception
Using the supplied List of Policies, execute each Policy's Rules (SQL query) against the database credentials provided in MagpieConfig. Each query is expected to return at a minimum a field named 'arn' for each row matched. If no rows are matched then no violation occured for that Rule.- Parameters:
policies- The List of PolicyContexts to match against.- Returns:
- A list of violations, or an empty list of none are found.
- Throws:
IOExceptionException
-
-