Class CpeEcosystemCache
java.lang.Object
org.owasp.dependencycheck.data.update.cpe.CpeEcosystemCache
- Author:
- Jeremy Long
-
Method Summary
Modifier and TypeMethodDescriptionReturns the map of changed CPE to ecosystem mappings.static StringgetEcosystem(String vendor, String product, String identifiedEcosystem) Returns the ecosystem for the given CPE (vendor, product).static booleanisEmpty()Returnstrueif the ecosystem cache is empty; otherwisefalse.static voidSets the ecosystem cache and resets the changed map.
-
Method Details
-
getEcosystem
Returns the ecosystem for the given CPE (vendor, product). If the CPE has a different ecosystem previously identified the ecosystem will be updated to Multiple; otherwise, if an ecosystem is provided it will be cached for future matching.- Parameters:
vendor- the vendor for the CPEproduct- the product for the CPEidentifiedEcosystem- the ecosystem identified for a CVE.- Returns:
- the ecosystem
-
setCache
-
getChanged
-
isEmpty
public static boolean isEmpty()Returnstrueif the ecosystem cache is empty; otherwisefalse.- Returns:
trueif the ecosystem cache is empty; otherwisefalse
-