Class CvssV2
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CvssV2
- All Implemented Interfaces:
Serializable
Represents CVSS version 2.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 @Nullable Booleanprivate @Nullable StringThe base severity - appears to be a mistake in the schema as this is duplicated in the CvssV2Data data and this field is never populated by the NVD API.private CvssV2DataJSON Schema for Common Vulnerability Scoring System version 2.0private @Nullable DoubleCVSS subscore.private @Nullable DoubleCVSS subscore.private @Nullable Booleanprivate @Nullable Booleanprivate @Nullable Booleanprivate static final longSerialization version UID.private String(Required)private CvssV2.Type(Required)private @Nullable Boolean -
Constructor Summary
ConstructorsConstructorDescriptionCvssV2(String source, CvssV2.Type type, CvssV2Data cvssData) Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV2.CvssV2(String source, CvssV2.Type type, CvssV2Data cvssData, @Nullable String baseSeverity, @Nullable Double exploitabilityScore, @Nullable Double impactScore, @Nullable Boolean acInsufInfo, @Nullable Boolean obtainAllPrivilege, @Nullable Boolean obtainUserPrivilege, @Nullable Boolean obtainOtherPrivilege, @Nullable Boolean userInteractionRequired) Full constructor for CvssV2. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable Boolean@Nullable StringJSON Schema for Common Vulnerability Scoring System version 2.0@Nullable DoubleCVSS subscore.@Nullable DoubleCVSS subscore.@Nullable Boolean@Nullable Boolean@Nullable Boolean(Required)getType()(Required)@Nullable BooleaninthashCode()toString()
-
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 2.0(Required)
-
baseSeverity
The base severity - appears to be a mistake in the schema as this is duplicated in the CvssV2Data data and this field is never populated by the NVD API. -
exploitabilityScore
CVSS subscore. -
impactScore
CVSS subscore. -
acInsufInfo
-
obtainAllPrivilege
-
obtainUserPrivilege
-
obtainOtherPrivilege
-
userInteractionRequired
-
-
Constructor Details
-
CvssV2
Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV2.- Parameters:
source- The source for the CvssV2 (required JSON property)type- The type for the CvssV2 (required JSON property)cvssData- The cvssData for the CvssV2 (required JSON property)
-
CvssV2
public CvssV2(String source, CvssV2.Type type, CvssV2Data cvssData, @Nullable String baseSeverity, @Nullable Double exploitabilityScore, @Nullable Double impactScore, @Nullable Boolean acInsufInfo, @Nullable Boolean obtainAllPrivilege, @Nullable Boolean obtainUserPrivilege, @Nullable Boolean obtainOtherPrivilege, @Nullable Boolean userInteractionRequired) Full constructor for CvssV2.- Parameters:
source- the source of the CVSS scoretype- the type (Primary or Secondary)cvssData- the CVSS v2 databaseSeverity- the base severityexploitabilityScore- the exploitability subscoreimpactScore- the impact subscoreacInsufInfo- access complexity insufficient info flagobtainAllPrivilege- obtain all privilege flagobtainUserPrivilege- obtain user privilege flagobtainOtherPrivilege- obtain other privilege flaguserInteractionRequired- user interaction required flag
-
-
Method Details
-
getSource
(Required)- Returns:
- source
-
getType
(Required)- Returns:
- type
-
getCvssData
JSON Schema for Common Vulnerability Scoring System version 2.0(Required)
- Returns:
- cvssData
-
getBaseSeverity
- Returns:
- baseSeverity
-
getExploitabilityScore
CVSS subscore.- Returns:
- exploitabilityScore
-
getImpactScore
CVSS subscore.- Returns:
- impactScore
-
getAcInsufInfo
- Returns:
- acInsufInfo
-
getObtainAllPrivilege
- Returns:
- obtainAllPrivilege
-
getObtainUserPrivilege
- Returns:
- obtainUserPrivilege
-
getObtainOtherPrivilege
- Returns:
- obtainOtherPrivilege
-
getUserInteractionRequired
- Returns:
- userInteractionRequired
-
toString
-
equals
-
hashCode
public int hashCode()
-