public final class CpeEcosystemCache extends Object
| Modifier and Type | Method and Description |
|---|---|
static Map<Pair<String,String>,String> |
getChanged()
Returns the map of changed CPE to ecosystem mappings.
|
static String |
getEcosystem(String vendor,
String product,
String identifiedEcosystem)
Returns the ecosystem for the given CPE (vendor, product).
|
static boolean |
isEmpty()
Returns
true if the ecosystem cache is empty; otherwise
false. |
static void |
setCache(Map<Pair<String,String>,String> cache)
Sets the ecosystem cache and resets the changed map.
|
public static String getEcosystem(String vendor, String product, String identifiedEcosystem)
vendor - the vendor for the CPEproduct - the product for the CPEidentifiedEcosystem - the ecosystem identified for a CVE.public static void setCache(Map<Pair<String,String>,String> cache)
cache - the new CPE to ecosystem mappingpublic static Map<Pair<String,String>,String> getChanged()
public static boolean isEmpty()
true if the ecosystem cache is empty; otherwise
false.true if the ecosystem cache is empty; otherwise
falseCopyright © 2012–2021 OWASP. All rights reserved.