Class SarifRule
java.lang.Object
org.owasp.dependencycheck.reporting.SarifRule
- Author:
- Jeremy Long
-
Constructor Summary
ConstructorsConstructorDescriptionSarifRule(String name, String shortDescription, String fullDescription, String source, io.github.jeremylong.openvulnerability.client.nvd.CvssV2 cvssV2, io.github.jeremylong.openvulnerability.client.nvd.CvssV3 cvssV3, io.github.jeremylong.openvulnerability.client.nvd.CvssV4 cvssV4) Constructs a new SARIF rule object. -
Method Summary
Modifier and TypeMethodDescriptionGet the value of CVSS2 Access Complexity.Get the value of CVSS2 Access Vector.Get the value of CVSS2 Authentication.Get the value of CVSS2 Availability Impact.Get the value of CVSS2 Confidentiality Impact.Get the value of CVSS2 Exploitability Score.Get the value of CVSS2 Impact Score.Get the value of CVSS2 Integrity Impact.Get the value of CVSS2 Score.Get the value of CVSS2 Severity.Get the value of CVSS2 Version.Get the value of CVSS3 Attack Complexity.Get the value of CVSS3 Attack Vector.Get the value of CVSS3 Availability Impact.Get the value of CVSS3 Base Score.Get the value of CVSS3 Base Severity.Get the value of CVSS3 Confidentiality Impact.Get the value of CVSS3 Exploitability Score.Get the value of CVSS3 Impact Score.Get the value of CVSS3 Integrity Impact.Get the value of CVSS3 Privileges Required.Get the value of CVSS3 Scope.Get the value of CVSS3 User Interaction.Get the value of CVSS3 Version.Get the value of CVSS4 Base Score.Get the Cvssv4 Vector.Get the full description.getId()Get the value of id.getName()Get the name.Get the short description.Get the value of source.voidsetCvssv2AccessComplexity(String cvssv2AccessComplexity) Set the value of CVSS2 Access Complexity.voidsetCvssv2AccessVector(String cvssv2AccessVector) Set the value of CVSS2 Access Vector.voidsetCvssv2Authentication(String cvssv2Authentication) Set the value of CVSS2 Authentication.voidsetCvssv2AvailabilityImpact(String cvssv2AvailabilityImpact) Set the value of CVSS2 Availability Impact.voidsetCvssv2ConfidentialityImpact(String cvssv2ConfidentialityImpact) Set the value of CVSS2 Confidentiality Impact.voidsetCvssv2ExploitabilityScore(String cvssv2ExploitabilityScore) Set the value of CVSS2 Exploitability Score.voidsetCvssv2ImpactScore(String cvssv2ImpactScore) Set the value of CVSS2 Impact Score.voidsetCvssv2IntegrityImpact(String cvssv2IntegrityImpact) Set the value of CVSS2 Integrity Impact.voidsetCvssv2Score(String cvssv2Score) Set the value of CVSS2 Score.voidsetCvssv2Severity(String cvssv2Severity) Set the value of CVSS2 Severity.voidsetCvssv2Version(String cvssv2Version) Set the value of CVSS2 Version.voidsetCvssv3AttackComplexity(String cvssv3AttackComplexity) Set the value of CVSS3 Attack Complexity.voidsetCvssv3AttackVector(String cvssv3AttackVector) Set the value of CVSS3 Attack Vector.voidsetCvssv3AvailabilityImpact(String cvssv3AvailabilityImpact) Set the value of CVSS3 Availability Impact.voidsetCvssv3BaseScore(String cvssv3BaseScore) Set the value of CVSS3 Base Score.voidsetCvssv3BaseSeverity(String cvssv3BaseSeverity) Set the value of CVSS3 Base Severity.voidsetCvssv3ConfidentialityImpact(String cvssv3ConfidentialityImpact) Set the value of CVSS3 Confidentiality Impact.voidsetCvssv3ExploitabilityScore(String cvssv3ExploitabilityScore) Set the value of CVSS3 Exploitability Score.voidsetCvssv3ImpactScore(String cvssv3ImpactScore) Set the value of CVSS3 Impact Score.voidsetCvssv3IntegrityImpact(String cvssv3IntegrityImpact) Set the value of CVSS3 Integrity Impact.voidsetCvssv3PrivilegesRequired(String cvssv3PrivilegesRequired) Set the value of CVSS3 Privileges Required.voidsetCvssv3Scope(String cvssv3Scope) Set the value of CVSS3 Scope.voidsetCvssv3UserInteraction(String cvssv3UserInteraction) Set the value of CVSS3 User Interaction.voidsetCvssv3Version(String cvssv3Version) Set the value of CVSS3 Version.voidsetCvssv4BaseScore(String cvssv4BaseScore) Set the value of CVSS4 Base Score.voidsetCvssv4Vector(String cvssv4Vector) Set the Cvssv4 Vector.voidsetFullDescription(String fullDescription) Set the full description.voidSet the value of id.voidSet the name.voidsetShortDescription(String shortDescription) Set the short description.voidSet the value of source.
-
Constructor Details
-
SarifRule
public SarifRule(String name, String shortDescription, String fullDescription, String source, io.github.jeremylong.openvulnerability.client.nvd.CvssV2 cvssV2, io.github.jeremylong.openvulnerability.client.nvd.CvssV3 cvssV3, io.github.jeremylong.openvulnerability.client.nvd.CvssV4 cvssV4) Constructs a new SARIF rule object.- Parameters:
name- the name of the ruleshortDescription- the short descriptionfullDescription- the full descriptionsource- the sourcecvssV2- the CVSS v2 scorecvssV3- the CVSS v3 scorecvssV4- the CVSS v4 score
-
-
Method Details
-
getSource
-
setSource
Set the value of source.- Parameters:
source- new value of source
-
getCvssv3Version
Get the value of CVSS3 Version.- Returns:
- the value of CVSS3 Version
-
setCvssv3Version
Set the value of CVSS3 Version.- Parameters:
cvssv3Version- new value of CVSS3 Version
-
getCvssv3ImpactScore
Get the value of CVSS3 Impact Score.- Returns:
- the value of CVSS3 Impact Score
-
setCvssv3ImpactScore
Set the value of CVSS3 Impact Score.- Parameters:
cvssv3ImpactScore- new value of CVSS3 Impact Score
-
getCvssv3ExploitabilityScore
Get the value of CVSS3 Exploitability Score.- Returns:
- the value of CVSS3 Exploitability Score
-
setCvssv3ExploitabilityScore
Set the value of CVSS3 Exploitability Score.- Parameters:
cvssv3ExploitabilityScore- new value of CVSS3 Exploitability Score
-
getCvssv3BaseSeverity
Get the value of CVSS3 Base Severity.- Returns:
- the value of CVSS3 Base Severity
-
setCvssv3BaseSeverity
Set the value of CVSS3 Base Severity.- Parameters:
cvssv3BaseSeverity- new value of CVSS3 Base Severity
-
getCvssv3AvailabilityImpact
Get the value of CVSS3 Availability Impact.- Returns:
- the value of CVSS3 Availability Impact
-
setCvssv3AvailabilityImpact
Set the value of CVSS3 Availability Impact.- Parameters:
cvssv3AvailabilityImpact- new value of CVSS3 Availability Impact
-
getCvssv3IntegrityImpact
Get the value of CVSS3 Integrity Impact.- Returns:
- the value of CVSS3 Integrity Impact
-
setCvssv3IntegrityImpact
Set the value of CVSS3 Integrity Impact.- Parameters:
cvssv3IntegrityImpact- new value of CVSS3 Integrity Impact
-
getCvssv3ConfidentialityImpact
Get the value of CVSS3 Confidentiality Impact.- Returns:
- the value of CVSS3 Confidentiality Impact
-
setCvssv3ConfidentialityImpact
Set the value of CVSS3 Confidentiality Impact.- Parameters:
cvssv3ConfidentialityImpact- new value of CVSS3 Confidentiality Impact
-
getCvssv3Scope
-
setCvssv3Scope
Set the value of CVSS3 Scope.- Parameters:
cvssv3Scope- new value of CVSS3 Scope
-
getCvssv3UserInteraction
Get the value of CVSS3 User Interaction.- Returns:
- the value of CVSS3 User Interaction
-
setCvssv3UserInteraction
Set the value of CVSS3 User Interaction.- Parameters:
cvssv3UserInteraction- new value of CVSS3 User Interaction
-
getCvssv3PrivilegesRequired
Get the value of CVSS3 Privileges Required.- Returns:
- the value of CVSS3 Privileges Required
-
setCvssv3PrivilegesRequired
Set the value of CVSS3 Privileges Required.- Parameters:
cvssv3PrivilegesRequired- new value of CVSS3 Privileges Required
-
getCvssv3AttackComplexity
Get the value of CVSS3 Attack Complexity.- Returns:
- the value of CVSS3 Attack Complexity
-
setCvssv3AttackComplexity
Set the value of CVSS3 Attack Complexity.- Parameters:
cvssv3AttackComplexity- new value of CVSS3 Attack Complexity
-
getCvssv3AttackVector
Get the value of CVSS3 Attack Vector.- Returns:
- the value of CVSS3 Attack Vector
-
setCvssv3AttackVector
Set the value of CVSS3 Attack Vector.- Parameters:
cvssv3AttackVector- new value of CVSS3 Attack Vector
-
getCvssv3BaseScore
Get the value of CVSS3 Base Score.- Returns:
- the value of CVSS3 Base Score
-
setCvssv3BaseScore
Set the value of CVSS3 Base Score.- Parameters:
cvssv3BaseScore- new value of CVSS3 Base Score
-
getCvssv2ImpactScore
Get the value of CVSS2 Impact Score.- Returns:
- the value of CVSS2 Impact Score
-
setCvssv2ImpactScore
Set the value of CVSS2 Impact Score.- Parameters:
cvssv2ImpactScore- new value of CVSS2 Impact Score
-
getCvssv2ExploitabilityScore
Get the value of CVSS2 Exploitability Score.- Returns:
- the value of CVSS2 Exploitability Score
-
setCvssv2ExploitabilityScore
Set the value of CVSS2 Exploitability Score.- Parameters:
cvssv2ExploitabilityScore- new value of CVSS2 Exploitability Score
-
getCvssv2Version
Get the value of CVSS2 Version.- Returns:
- the value of CVSS2 Version
-
setCvssv2Version
Set the value of CVSS2 Version.- Parameters:
cvssv2Version- new value of CVSS2 Version
-
getCvssv2Severity
Get the value of CVSS2 Severity.- Returns:
- the value of CVSS2 Severity
-
setCvssv2Severity
Set the value of CVSS2 Severity.- Parameters:
cvssv2Severity- new value of CVSS2 Severity
-
getCvssv2AvailabilityImpact
Get the value of CVSS2 Availability Impact.- Returns:
- the value of CVSS2 Availability Impact
-
setCvssv2AvailabilityImpact
Set the value of CVSS2 Availability Impact.- Parameters:
cvssv2AvailabilityImpact- new value of CVSS2 Availability Impact
-
getCvssv2IntegrityImpact
Get the value of CVSS2 Integrity Impact.- Returns:
- the value of CVSS2 Integrity Impact
-
setCvssv2IntegrityImpact
Set the value of CVSS2 Integrity Impact.- Parameters:
cvssv2IntegrityImpact- new value of CVSS2 Integrity Impact
-
getCvssv2ConfidentialityImpact
Get the value of CVSS2 Confidentiality Impact.- Returns:
- the value of CVSS2 Confidentiality Impact
-
setCvssv2ConfidentialityImpact
Set the value of CVSS2 Confidentiality Impact.- Parameters:
cvssv2ConfidentialityImpact- new value of CVSS2 Confidentiality Impact
-
getCvssv2Authentication
Get the value of CVSS2 Authentication.- Returns:
- the value of CVSS2 Authentication
-
setCvssv2Authentication
Set the value of CVSS2 Authentication.- Parameters:
cvssv2Authentication- new value of CVSS2 Authentication
-
getCvssv2AccessComplexity
Get the value of CVSS2 Access Complexity.- Returns:
- the value of CVSS2 Access Complexity
-
setCvssv2AccessComplexity
Set the value of CVSS2 Access Complexity.- Parameters:
cvssv2AccessComplexity- new value of CVSS2 Access Complexity
-
getCvssv2AccessVector
Get the value of CVSS2 Access Vector.- Returns:
- the value of CVSS2 Access Vector
-
setCvssv2AccessVector
Set the value of CVSS2 Access Vector.- Parameters:
cvssv2AccessVector- new value of CVSS2 Access Vector
-
getCvssv2Score
-
setCvssv2Score
Set the value of CVSS2 Score.- Parameters:
cvssv2Score- new value of CVSS2 Score
-
getName
-
setName
-
getFullDescription
-
setFullDescription
Set the full description.- Parameters:
fullDescription- the full description
-
getShortDescription
-
setShortDescription
Set the short description.- Parameters:
shortDescription- the short description
-
getId
-
setId
-
getCvssv4BaseScore
Get the value of CVSS4 Base Score.- Returns:
- the value of CVSS4 Base Score
-
setCvssv4BaseScore
Set the value of CVSS4 Base Score.- Parameters:
cvssv4BaseScore- new value of CVSS4 Base Score
-
getCvssv4Vector
-
setCvssv4Vector
Set the Cvssv4 Vector.- Parameters:
cvssv4Vector- new value of Cvssv4 Vector
-