public final class CpeEcosystemCache
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Map<Pair<java.lang.String,java.lang.String>,java.lang.String> |
getChanged()
Returns the map of changed CPE to ecosystem mappings.
|
static java.lang.String |
getEcosystem(java.lang.String vendor,
java.lang.String product,
java.lang.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(java.util.Map<Pair<java.lang.String,java.lang.String>,java.lang.String> cache)
Sets the ecosystem cache and resets the changed map.
|
public static java.lang.String getEcosystem(java.lang.String vendor,
java.lang.String product,
java.lang.String identifiedEcosystem)
vendor - the vendor for the CPEproduct - the product for the CPEidentifiedEcosystem - the ecosystem identified for a CVE.public static void setCache(java.util.Map<Pair<java.lang.String,java.lang.String>,java.lang.String> cache)
cache - the new CPE to ecosystem mappingpublic static java.util.Map<Pair<java.lang.String,java.lang.String>,java.lang.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-21 Jeremy Long. All Rights Reserved.