Class CvssV4
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CvssV4
- All Implemented Interfaces:
Serializable
Represents CVSS version 4.0 scoring data from the NVD API.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType of CVSS score (Primary or Secondary). -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CvssV4DataJSON Schema for Common Vulnerability Scoring System version 4.0private static final longSerialization version UID.private String(Required)private CvssV4.Type(Required) -
Constructor Summary
ConstructorsConstructorDescriptionCvssV4(String source, CvssV4.Type type, CvssV4Data cvssData) Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV4. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
source
(Required) -
type
(Required) -
cvssData
JSON Schema for Common Vulnerability Scoring System version 4.0(Required)
-
-
Constructor Details
-
CvssV4
Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV4.- Parameters:
source- The source for the CvssV4 (required JSON property)type- The type for the CvssV4 (required JSON property)cvssData- The cvssData for the CvssV4 (required JSON property)
-
-
Method Details
-
getSource
(Required)- Returns:
- source
-
getType
(Required)- Returns:
- type
-
getCvssData
JSON Schema for Common Vulnerability Scoring System version 4.0(Required)
- Returns:
- cvssData
-
toString
-
equals
-
hashCode
public int hashCode()
-