Class SarifRule

java.lang.Object
org.owasp.dependencycheck.reporting.SarifRule

public class SarifRule extends Object
Author:
Jeremy Long
  • 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 rule
      shortDescription - the short description
      fullDescription - the full description
      source - the source
      cvssV2 - the CVSS v2 score
      cvssV3 - the CVSS v3 score
      cvssV4 - the CVSS v4 score
  • Method Details

    • getSource

      public String getSource()
      Get the value of source.
      Returns:
      the value of source
    • setSource

      public void setSource(String source)
      Set the value of source.
      Parameters:
      source - new value of source
    • getCvssv3Version

      public String getCvssv3Version()
      Get the value of CVSS3 Version.
      Returns:
      the value of CVSS3 Version
    • setCvssv3Version

      public void setCvssv3Version(String cvssv3Version)
      Set the value of CVSS3 Version.
      Parameters:
      cvssv3Version - new value of CVSS3 Version
    • getCvssv3ImpactScore

      public String getCvssv3ImpactScore()
      Get the value of CVSS3 Impact Score.
      Returns:
      the value of CVSS3 Impact Score
    • setCvssv3ImpactScore

      public void setCvssv3ImpactScore(String cvssv3ImpactScore)
      Set the value of CVSS3 Impact Score.
      Parameters:
      cvssv3ImpactScore - new value of CVSS3 Impact Score
    • getCvssv3ExploitabilityScore

      public String getCvssv3ExploitabilityScore()
      Get the value of CVSS3 Exploitability Score.
      Returns:
      the value of CVSS3 Exploitability Score
    • setCvssv3ExploitabilityScore

      public void setCvssv3ExploitabilityScore(String cvssv3ExploitabilityScore)
      Set the value of CVSS3 Exploitability Score.
      Parameters:
      cvssv3ExploitabilityScore - new value of CVSS3 Exploitability Score
    • getCvssv3BaseSeverity

      public String getCvssv3BaseSeverity()
      Get the value of CVSS3 Base Severity.
      Returns:
      the value of CVSS3 Base Severity
    • setCvssv3BaseSeverity

      public void setCvssv3BaseSeverity(String cvssv3BaseSeverity)
      Set the value of CVSS3 Base Severity.
      Parameters:
      cvssv3BaseSeverity - new value of CVSS3 Base Severity
    • getCvssv3AvailabilityImpact

      public String getCvssv3AvailabilityImpact()
      Get the value of CVSS3 Availability Impact.
      Returns:
      the value of CVSS3 Availability Impact
    • setCvssv3AvailabilityImpact

      public void setCvssv3AvailabilityImpact(String cvssv3AvailabilityImpact)
      Set the value of CVSS3 Availability Impact.
      Parameters:
      cvssv3AvailabilityImpact - new value of CVSS3 Availability Impact
    • getCvssv3IntegrityImpact

      public String getCvssv3IntegrityImpact()
      Get the value of CVSS3 Integrity Impact.
      Returns:
      the value of CVSS3 Integrity Impact
    • setCvssv3IntegrityImpact

      public void setCvssv3IntegrityImpact(String cvssv3IntegrityImpact)
      Set the value of CVSS3 Integrity Impact.
      Parameters:
      cvssv3IntegrityImpact - new value of CVSS3 Integrity Impact
    • getCvssv3ConfidentialityImpact

      public String getCvssv3ConfidentialityImpact()
      Get the value of CVSS3 Confidentiality Impact.
      Returns:
      the value of CVSS3 Confidentiality Impact
    • setCvssv3ConfidentialityImpact

      public void setCvssv3ConfidentialityImpact(String cvssv3ConfidentialityImpact)
      Set the value of CVSS3 Confidentiality Impact.
      Parameters:
      cvssv3ConfidentialityImpact - new value of CVSS3 Confidentiality Impact
    • getCvssv3Scope

      public String getCvssv3Scope()
      Get the value of CVSS3 Scope.
      Returns:
      the value of CVSS3 Scope
    • setCvssv3Scope

      public void setCvssv3Scope(String cvssv3Scope)
      Set the value of CVSS3 Scope.
      Parameters:
      cvssv3Scope - new value of CVSS3 Scope
    • getCvssv3UserInteraction

      public String getCvssv3UserInteraction()
      Get the value of CVSS3 User Interaction.
      Returns:
      the value of CVSS3 User Interaction
    • setCvssv3UserInteraction

      public void setCvssv3UserInteraction(String cvssv3UserInteraction)
      Set the value of CVSS3 User Interaction.
      Parameters:
      cvssv3UserInteraction - new value of CVSS3 User Interaction
    • getCvssv3PrivilegesRequired

      public String getCvssv3PrivilegesRequired()
      Get the value of CVSS3 Privileges Required.
      Returns:
      the value of CVSS3 Privileges Required
    • setCvssv3PrivilegesRequired

      public void setCvssv3PrivilegesRequired(String cvssv3PrivilegesRequired)
      Set the value of CVSS3 Privileges Required.
      Parameters:
      cvssv3PrivilegesRequired - new value of CVSS3 Privileges Required
    • getCvssv3AttackComplexity

      public String getCvssv3AttackComplexity()
      Get the value of CVSS3 Attack Complexity.
      Returns:
      the value of CVSS3 Attack Complexity
    • setCvssv3AttackComplexity

      public void setCvssv3AttackComplexity(String cvssv3AttackComplexity)
      Set the value of CVSS3 Attack Complexity.
      Parameters:
      cvssv3AttackComplexity - new value of CVSS3 Attack Complexity
    • getCvssv3AttackVector

      public String getCvssv3AttackVector()
      Get the value of CVSS3 Attack Vector.
      Returns:
      the value of CVSS3 Attack Vector
    • setCvssv3AttackVector

      public void setCvssv3AttackVector(String cvssv3AttackVector)
      Set the value of CVSS3 Attack Vector.
      Parameters:
      cvssv3AttackVector - new value of CVSS3 Attack Vector
    • getCvssv3BaseScore

      public String getCvssv3BaseScore()
      Get the value of CVSS3 Base Score.
      Returns:
      the value of CVSS3 Base Score
    • setCvssv3BaseScore

      public void setCvssv3BaseScore(String cvssv3BaseScore)
      Set the value of CVSS3 Base Score.
      Parameters:
      cvssv3BaseScore - new value of CVSS3 Base Score
    • getCvssv2ImpactScore

      public String getCvssv2ImpactScore()
      Get the value of CVSS2 Impact Score.
      Returns:
      the value of CVSS2 Impact Score
    • setCvssv2ImpactScore

      public void setCvssv2ImpactScore(String cvssv2ImpactScore)
      Set the value of CVSS2 Impact Score.
      Parameters:
      cvssv2ImpactScore - new value of CVSS2 Impact Score
    • getCvssv2ExploitabilityScore

      public String getCvssv2ExploitabilityScore()
      Get the value of CVSS2 Exploitability Score.
      Returns:
      the value of CVSS2 Exploitability Score
    • setCvssv2ExploitabilityScore

      public void setCvssv2ExploitabilityScore(String cvssv2ExploitabilityScore)
      Set the value of CVSS2 Exploitability Score.
      Parameters:
      cvssv2ExploitabilityScore - new value of CVSS2 Exploitability Score
    • getCvssv2Version

      public String getCvssv2Version()
      Get the value of CVSS2 Version.
      Returns:
      the value of CVSS2 Version
    • setCvssv2Version

      public void setCvssv2Version(String cvssv2Version)
      Set the value of CVSS2 Version.
      Parameters:
      cvssv2Version - new value of CVSS2 Version
    • getCvssv2Severity

      public String getCvssv2Severity()
      Get the value of CVSS2 Severity.
      Returns:
      the value of CVSS2 Severity
    • setCvssv2Severity

      public void setCvssv2Severity(String cvssv2Severity)
      Set the value of CVSS2 Severity.
      Parameters:
      cvssv2Severity - new value of CVSS2 Severity
    • getCvssv2AvailabilityImpact

      public String getCvssv2AvailabilityImpact()
      Get the value of CVSS2 Availability Impact.
      Returns:
      the value of CVSS2 Availability Impact
    • setCvssv2AvailabilityImpact

      public void setCvssv2AvailabilityImpact(String cvssv2AvailabilityImpact)
      Set the value of CVSS2 Availability Impact.
      Parameters:
      cvssv2AvailabilityImpact - new value of CVSS2 Availability Impact
    • getCvssv2IntegrityImpact

      public String getCvssv2IntegrityImpact()
      Get the value of CVSS2 Integrity Impact.
      Returns:
      the value of CVSS2 Integrity Impact
    • setCvssv2IntegrityImpact

      public void setCvssv2IntegrityImpact(String cvssv2IntegrityImpact)
      Set the value of CVSS2 Integrity Impact.
      Parameters:
      cvssv2IntegrityImpact - new value of CVSS2 Integrity Impact
    • getCvssv2ConfidentialityImpact

      public String getCvssv2ConfidentialityImpact()
      Get the value of CVSS2 Confidentiality Impact.
      Returns:
      the value of CVSS2 Confidentiality Impact
    • setCvssv2ConfidentialityImpact

      public void setCvssv2ConfidentialityImpact(String cvssv2ConfidentialityImpact)
      Set the value of CVSS2 Confidentiality Impact.
      Parameters:
      cvssv2ConfidentialityImpact - new value of CVSS2 Confidentiality Impact
    • getCvssv2Authentication

      public String getCvssv2Authentication()
      Get the value of CVSS2 Authentication.
      Returns:
      the value of CVSS2 Authentication
    • setCvssv2Authentication

      public void setCvssv2Authentication(String cvssv2Authentication)
      Set the value of CVSS2 Authentication.
      Parameters:
      cvssv2Authentication - new value of CVSS2 Authentication
    • getCvssv2AccessComplexity

      public String getCvssv2AccessComplexity()
      Get the value of CVSS2 Access Complexity.
      Returns:
      the value of CVSS2 Access Complexity
    • setCvssv2AccessComplexity

      public void setCvssv2AccessComplexity(String cvssv2AccessComplexity)
      Set the value of CVSS2 Access Complexity.
      Parameters:
      cvssv2AccessComplexity - new value of CVSS2 Access Complexity
    • getCvssv2AccessVector

      public String getCvssv2AccessVector()
      Get the value of CVSS2 Access Vector.
      Returns:
      the value of CVSS2 Access Vector
    • setCvssv2AccessVector

      public void setCvssv2AccessVector(String cvssv2AccessVector)
      Set the value of CVSS2 Access Vector.
      Parameters:
      cvssv2AccessVector - new value of CVSS2 Access Vector
    • getCvssv2Score

      public String getCvssv2Score()
      Get the value of CVSS2 Score.
      Returns:
      the value of CVSS2 Score
    • setCvssv2Score

      public void setCvssv2Score(String cvssv2Score)
      Set the value of CVSS2 Score.
      Parameters:
      cvssv2Score - new value of CVSS2 Score
    • getName

      public String getName()
      Get the name.
      Returns:
      the name
    • setName

      public void setName(String name)
      Set the name.
      Parameters:
      name - the name
    • getFullDescription

      public String getFullDescription()
      Get the full description.
      Returns:
      the value of full description
    • setFullDescription

      public void setFullDescription(String fullDescription)
      Set the full description.
      Parameters:
      fullDescription - the full description
    • getShortDescription

      public String getShortDescription()
      Get the short description.
      Returns:
      the short description
    • setShortDescription

      public void setShortDescription(String shortDescription)
      Set the short description.
      Parameters:
      shortDescription - the short description
    • getId

      public String getId()
      Get the value of id.
      Returns:
      the value of id
    • setId

      public void setId(String id)
      Set the value of id.
      Parameters:
      id - new value of id
    • getCvssv4BaseScore

      public String getCvssv4BaseScore()
      Get the value of CVSS4 Base Score.
      Returns:
      the value of CVSS4 Base Score
    • setCvssv4BaseScore

      public void setCvssv4BaseScore(String cvssv4BaseScore)
      Set the value of CVSS4 Base Score.
      Parameters:
      cvssv4BaseScore - new value of CVSS4 Base Score
    • getCvssv4Vector

      public String getCvssv4Vector()
      Get the Cvssv4 Vector.
      Returns:
      the Cvssv4 Vector
    • setCvssv4Vector

      public void setCvssv4Vector(String cvssv4Vector)
      Set the Cvssv4 Vector.
      Parameters:
      cvssv4Vector - new value of Cvssv4 Vector