Class NpmAuditParser
java.lang.Object
org.owasp.dependencycheck.data.nodeaudit.NpmAuditParser
Parser for NPM Audit API response. This parser is derived from:
https://github.com/DependencyTrack/dependency-track/blob/master/src/main/java/org/owasp/dependencytrack/parser/npm/audit/NpmAuditParser.java
- Author:
- Steve Springett
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NpmAuditParser
public NpmAuditParser()
-
-
Method Details
-
parse
Parses the JSON response from the NPM Audit API.- Parameters:
jsonResponse- the JSON node to parse- Returns:
- an AdvisoryResults object
- Throws:
org.json.JSONException- thrown if the JSON is not of the expected schema
-