Enum NvdCveClientBuilder.BooleanFilter
- java.lang.Object
-
- java.lang.Enum<NvdCveClientBuilder.BooleanFilter>
-
- io.github.jeremylong.openvulnerability.client.nvd.NvdCveClientBuilder.BooleanFilter
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NvdCveClientBuilder.BooleanFilter>
- Enclosing class:
- NvdCveClientBuilder
public static enum NvdCveClientBuilder.BooleanFilter extends java.lang.Enum<NvdCveClientBuilder.BooleanFilter>
Filters for the NVD CVE API that are used without parameters.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_CERT_ALERTSReturns vulnerabilities with have CERT alerts.HAS_CERT_NOTESReturns vulnerabilities with have CERT notes.HAS_KEVReturns vulnerabilities with Known Exploited Vulnerabilities information.HAS_OVALReturns vulnerabilities that have OVAL information.IS_VULNERABLEUsed in conjunction with the CPE Search and returns only those considered vulnerable.NO_REJECTEDDo not include rejected CVEs.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoParameterName()Returns the API querystring parameter.static NvdCveClientBuilder.BooleanFiltervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NvdCveClientBuilder.BooleanFilter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HAS_CERT_ALERTS
public static final NvdCveClientBuilder.BooleanFilter HAS_CERT_ALERTS
Returns vulnerabilities with have CERT alerts.hasCertAlerts
- See Also:
- NVD CVE API
-
HAS_CERT_NOTES
public static final NvdCveClientBuilder.BooleanFilter HAS_CERT_NOTES
Returns vulnerabilities with have CERT notes.hasCertNotes
- See Also:
- NVD CVE API
-
HAS_KEV
public static final NvdCveClientBuilder.BooleanFilter HAS_KEV
Returns vulnerabilities with Known Exploited Vulnerabilities information.hasKev
- See Also:
- NVD CVE API
-
HAS_OVAL
public static final NvdCveClientBuilder.BooleanFilter HAS_OVAL
Returns vulnerabilities that have OVAL information.hasOval
- See Also:
- NVD CVE API
-
IS_VULNERABLE
public static final NvdCveClientBuilder.BooleanFilter IS_VULNERABLE
Used in conjunction with the CPE Search and returns only those considered vulnerable.isVulnerable
- See Also:
- NVD CVE API
-
NO_REJECTED
public static final NvdCveClientBuilder.BooleanFilter NO_REJECTED
Do not include rejected CVEs.noRejected
- See Also:
- NVD CVE API
-
-
Method Detail
-
values
public static NvdCveClientBuilder.BooleanFilter[] 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 (NvdCveClientBuilder.BooleanFilter c : NvdCveClientBuilder.BooleanFilter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NvdCveClientBuilder.BooleanFilter 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
-
toParameterName
public java.lang.String toParameterName()
Returns the API querystring parameter.- Returns:
- the API querystring parameter
-
-