public class DescriptionEcosystemMapper extends Object
| Constructor and Description |
|---|
DescriptionEcosystemMapper()
Constructs a new description ecosystem mapper.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEcosystem(DefCveItem cve)
Returns the ecosystem if identified by English description from the CVE
data.
|
String |
getEcosystem(String multicase)
Determines the ecosystem for the given string.
|
protected static boolean[] |
getPrefixesFor(String str) |
protected void |
increment(int i,
int[] ecosystemMap) |
protected static boolean |
isExtension(String str,
int begin,
int end) |
protected static boolean |
isLowercaseAscii(String multicase,
int start,
int end) |
static boolean |
isURL(String c,
int begin)
Tests if the string is a URL by looking for '://'.
|
protected static StringAhoCorasickDoubleArrayTrie<EcosystemHint> |
toAhoCorasickDoubleArrayTrie() |
public DescriptionEcosystemMapper()
protected static boolean[] getPrefixesFor(String str)
protected static StringAhoCorasickDoubleArrayTrie<EcosystemHint> toAhoCorasickDoubleArrayTrie()
protected static boolean isExtension(String str, int begin, int end)
protected static boolean isLowercaseAscii(String multicase, int start, int end)
public static boolean isURL(String c, int begin)
c - the text to test.begin - the position in the string to begin searching; note the
search is decreasing to 0true if `://` is found; otherwise falseprotected void increment(int i,
int[] ecosystemMap)
public String getEcosystem(DefCveItem cve)
cve - the CVE dataCopyright © 2012–2021 OWASP. All rights reserved.