Class CvssV3
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CvssV3
- All Implemented Interfaces:
Serializable
Represents CVSS version 3.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 CvssV3DataJSON Schema for Common Vulnerability Scoring System version 3.0private @Nullable DoubleCVSS subscore.private @Nullable DoubleCVSS subscore.private static final longSerialization version UID.private String(Required)private CvssV3.Type(Required) -
Constructor Summary
ConstructorsConstructorDescriptionCvssV3(String source, CvssV3.Type type, CvssV3Data cvssData) Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV3.CvssV3(String source, CvssV3.Type type, CvssV3Data cvssData, @Nullable Double exploitabilityScore, @Nullable Double impactScore) Full constructor for CvssV3. -
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 3.0(Required)
-
exploitabilityScore
CVSS subscore. -
impactScore
CVSS subscore.
-
-
Constructor Details
-
CvssV3
Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV3.- Parameters:
source- The source for the CvssV3 (required JSON property)type- The type for the CvssV3 (required JSON property)cvssData- The cvssData for the CvssV3 (required JSON property)
-
CvssV3
public CvssV3(String source, CvssV3.Type type, CvssV3Data cvssData, @Nullable Double exploitabilityScore, @Nullable Double impactScore) Full constructor for CvssV3.- Parameters:
source- the source of the CVSS scoretype- the type (Primary or Secondary)cvssData- the CVSS v3 dataexploitabilityScore- the exploitability subscoreimpactScore- the impact subscore
-
-
Method Details
-
getSource
(Required)- Returns:
- source
-
getType
(Required)- Returns:
- type
-
getCvssData
JSON Schema for Common Vulnerability Scoring System version 3.0(Required)
- Returns:
- cvssData
-
getExploitabilityScore
CVSS subscore.- Returns:
- exploitabilityScore
-
getImpactScore
CVSS subscore.- Returns:
- impactScore
-
toString
-
equals
-
hashCode
public int hashCode()
-