public final class Vulnerabilities extends Object
Modifier and Type | Method and Description |
---|---|
static List<Vulnerability> |
getAllVulnerabilities()
Gets an unmodifiable
List containing all the Vulnerability for the current
active Locale. |
static String |
getDescription(Vulnerability vuln) |
static String |
getReference(Vulnerability vuln) |
static String |
getSolution(Vulnerability vuln) |
static Vulnerability |
getVulnerability(String id)
Returns the
Vulnerability for the given WASC ID, or null if not available. |
public static List<Vulnerability> getAllVulnerabilities()
List
containing all the Vulnerability
for the current
active Locale. They are loaded from a XML file.
An empty List
is returned if any error occurred while opening/parsing the XML
file. The returned List
is guaranteed to be non null
.
Note: Trying to modify the list will result in an UnsupportedOperationException
.
List
containing all the Vulnerability
loaded, never
null
.public static Vulnerability getVulnerability(String id)
Vulnerability
for the given WASC ID, or null
if not available.
The WASC ID is in the form:
"wasc_" + #ID
For example, "wasc_1", "wasc_2" or "wasc_48".
id
- the WASC ID of the vulnerability, e.g. wasc_1Vulnerability
for the given WASC ID, or null
if not availablepublic static String getDescription(Vulnerability vuln)
public static String getSolution(Vulnerability vuln)
public static String getReference(Vulnerability vuln)