| Package | Description |
|---|---|
| org.owasp.dependencycheck.analyzer |
Analyzers are used to inspect the identified dependencies, collect Evidence, and process the dependencies.
|
| org.owasp.dependencycheck.data.cache |
Implements a generic persisted cache that can be used to store results of external analysis between executions.
|
| org.owasp.dependencycheck.xml.pom |
This package contains classes used to parse pom.xml files.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
JarAnalyzer.extractLicense(Model pom,
Dependency dependency)
Extracts the license information from the pom and adds it to the
dependency.
|
static boolean |
JarAnalyzer.setPomEvidence(Dependency dependency,
Model pom,
List<JarAnalyzer.ClassNameInformation> classes,
boolean isMainPom)
Sets evidence from the pom on the supplied dependency.
|
| Modifier and Type | Method and Description |
|---|---|
DataCache<Model> |
DataCacheFactory.getPomCache()
Returns the data cache for POM files.
|
| Modifier and Type | Method and Description |
|---|---|
Model |
PomHandler.getModel()
Returns the model obtained from the pom.xml.
|
Model |
PomParser.parse(File file)
Parses the given xml file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
PomParser.parse(InputStream inputStream)
Parses the given XML file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
PomParser.parseWithoutDocTypeCleanup(File file)
Parses the given xml file and returns a Model object containing only the
fields dependency-check requires.
|
Model |
PomParser.parseWithoutDocTypeCleanup(InputStream inputStream)
Parses the given XML file and returns a Model object containing only the
fields dependency-check requires.
|
static Model |
PomUtils.readPom(File file)
Reads in the specified POM and converts it to a Model.
|
static Model |
PomUtils.readPom(String path,
JarFile jar)
Retrieves the specified POM from a jar file and converts it to a Model.
|
Copyright © 2012–2020 OWASP. All rights reserved.