Package org.zaproxy.zap.model
Class Vulnerabilities
- java.lang.Object
-
- org.zaproxy.zap.model.Vulnerabilities
-
@Deprecated(since="2.14.0", forRemoval=true) public final class Vulnerabilities extends java.lang.Object
Deprecated, for removal: This API element is subject to removal in a future version.(2.14.0) The vulnerabilities were moved to Common Library add-on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Vulnerabilities.Provider
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.util.List<Vulnerability>
getAllVulnerabilities()
Deprecated, for removal: This API element is subject to removal in a future version.Gets an unmodifiableList
containing all theVulnerability
for the current active Locale.static java.lang.String
getDescription(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.String
getReference(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.static java.lang.String
getSolution(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.static Vulnerability
getVulnerability(java.lang.String id)
Deprecated, for removal: This API element is subject to removal in a future version.Returns theVulnerability
for the given WASC ID, ornull
if not available.static void
setProvider(Vulnerabilities.Provider provider)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
Method Detail
-
setProvider
public static void setProvider(Vulnerabilities.Provider provider)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getAllVulnerabilities
public static java.util.List<Vulnerability> getAllVulnerabilities()
Deprecated, for removal: This API element is subject to removal in a future version.Gets an unmodifiableList
containing all theVulnerability
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 returnedList
is guaranteed to be nonnull
.Note: Trying to modify the list will result in an
UnsupportedOperationException
.- Returns:
- an unmodifiable
List
containing all theVulnerability
loaded, nevernull
.
-
getVulnerability
public static Vulnerability getVulnerability(java.lang.String id)
Deprecated, for removal: This API element is subject to removal in a future version.Returns theVulnerability
for the given WASC ID, ornull
if not available.The WASC ID is in the form:
"wasc_" + #ID
For example, "wasc_1", "wasc_2" or "wasc_48".
- Parameters:
id
- the WASC ID of the vulnerability, e.g. wasc_1- Returns:
- the
Vulnerability
for the given WASC ID, ornull
if not available
-
getDescription
public static java.lang.String getDescription(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getSolution
public static java.lang.String getSolution(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getReference
public static java.lang.String getReference(Vulnerability vuln)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-