Enum Vulnerability.Source
- java.lang.Object
-
- java.lang.Enum<Vulnerability.Source>
-
- org.owasp.dependencycheck.dependency.Vulnerability.Source
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Vulnerability.Source>
- Enclosing class:
- Vulnerability
public static enum Vulnerability.Source extends java.lang.Enum<Vulnerability.Source>
An enumeration for the source of vulnerability.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Vulnerability.Source
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Vulnerability.Source[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NVD
public static final Vulnerability.Source NVD
National Vulnerability Database.
-
NPM
public static final Vulnerability.Source NPM
NPM Public Advisory.
-
RETIREJS
public static final Vulnerability.Source RETIREJS
RetireJS.
-
OSSINDEX
public static final Vulnerability.Source OSSINDEX
Sonatype OSS Index.
-
BUNDLEAUDIT
public static final Vulnerability.Source BUNDLEAUDIT
Vulnerability from Bundle Audit.
-
MIXAUDIT
public static final Vulnerability.Source MIXAUDIT
Vulnerability from Mix Audit.
-
-
Method Detail
-
values
public static Vulnerability.Source[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Vulnerability.Source c : Vulnerability.Source.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Vulnerability.Source valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-