Class CvssV2
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.nvd.CvssV2
-
- All Implemented Interfaces:
java.io.Serializable
@NullMarked public class CvssV2 extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCvssV2.Type
-
Constructor Summary
Constructors Constructor Description CvssV2(java.lang.String source, CvssV2.Type type, CvssV2Data cvssData)Constructor taking only the required set of JSON properties as the minimal constructor for a CvssV2.CvssV2(java.lang.String source, CvssV2.Type type, CvssV2Data cvssData, @Nullable java.lang.String baseSeverity, @Nullable java.lang.Double exploitabilityScore, @Nullable java.lang.Double impactScore, @Nullable java.lang.Boolean acInsufInfo, @Nullable java.lang.Boolean obtainAllPrivilege, @Nullable java.lang.Boolean obtainUserPrivilege, @Nullable java.lang.Boolean obtainOtherPrivilege, @Nullable java.lang.Boolean userInteractionRequired)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@Nullable java.lang.BooleangetAcInsufInfo()@Nullable java.lang.StringgetBaseSeverity()CvssV2DatagetCvssData()JSON Schema for Common Vulnerability Scoring System version 2.0@Nullable java.lang.DoublegetExploitabilityScore()CVSS subscore.@Nullable java.lang.DoublegetImpactScore()CVSS subscore.@Nullable java.lang.BooleangetObtainAllPrivilege()@Nullable java.lang.BooleangetObtainOtherPrivilege()@Nullable java.lang.BooleangetObtainUserPrivilege()java.lang.StringgetSource()(Required)CvssV2.TypegetType()(Required)@Nullable java.lang.BooleangetUserInteractionRequired()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CvssV2
public CvssV2(java.lang.String source, CvssV2.Type type, CvssV2Data cvssData)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(java.lang.String source, CvssV2.Type type, CvssV2Data cvssData, @Nullable java.lang.String baseSeverity, @Nullable java.lang.Double exploitabilityScore, @Nullable java.lang.Double impactScore, @Nullable java.lang.Boolean acInsufInfo, @Nullable java.lang.Boolean obtainAllPrivilege, @Nullable java.lang.Boolean obtainUserPrivilege, @Nullable java.lang.Boolean obtainOtherPrivilege, @Nullable java.lang.Boolean userInteractionRequired)
-
-
Method Detail
-
getSource
public java.lang.String getSource()
(Required)- Returns:
- source
-
getType
public CvssV2.Type getType()
(Required)- Returns:
- type
-
getCvssData
public CvssV2Data getCvssData()
JSON Schema for Common Vulnerability Scoring System version 2.0(Required)
- Returns:
- cvssData
-
getBaseSeverity
public @Nullable java.lang.String getBaseSeverity()
- Returns:
- baseSeverity
-
getExploitabilityScore
public @Nullable java.lang.Double getExploitabilityScore()
CVSS subscore.- Returns:
- exploitabilityScore
-
getImpactScore
public @Nullable java.lang.Double getImpactScore()
CVSS subscore.- Returns:
- impactScore
-
getAcInsufInfo
public @Nullable java.lang.Boolean getAcInsufInfo()
- Returns:
- acInsufInfo
-
getObtainAllPrivilege
public @Nullable java.lang.Boolean getObtainAllPrivilege()
- Returns:
- obtainAllPrivilege
-
getObtainUserPrivilege
public @Nullable java.lang.Boolean getObtainUserPrivilege()
- Returns:
- obtainUserPrivilege
-
getObtainOtherPrivilege
public @Nullable java.lang.Boolean getObtainOtherPrivilege()
- Returns:
- obtainOtherPrivilege
-
getUserInteractionRequired
public @Nullable java.lang.Boolean getUserInteractionRequired()
- Returns:
- userInteractionRequired
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-