Class SarifRule


  • public class SarifRule
    extends java.lang.Object
    Author:
    Jeremy Long
    • Constructor Detail

      • SarifRule

        public SarifRule​(java.lang.String name,
                         java.lang.String shortDescription,
                         java.lang.String fullDescription,
                         java.lang.String source,
                         io.github.jeremylong.openvulnerability.client.nvd.CvssV2 cvssV2,
                         io.github.jeremylong.openvulnerability.client.nvd.CvssV3 cvssV3)
        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
    • Method Detail

      • getSource

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public void setId​(java.lang.String id)
        Set the value of id.
        Parameters:
        id - new value of id