SarifRule.java

  1. /*
  2.  * This file is part of dependency-check-core.
  3.  *
  4.  * Licensed under the Apache License, Version 2.0 (the "License");
  5.  * you may not use this file except in compliance with the License.
  6.  * You may obtain a copy of the License at
  7.  *
  8.  *     http://www.apache.org/licenses/LICENSE-2.0
  9.  *
  10.  * Unless required by applicable law or agreed to in writing, software
  11.  * distributed under the License is distributed on an "AS IS" BASIS,
  12.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.  * See the License for the specific language governing permissions and
  14.  * limitations under the License.
  15.  *
  16.  * Copyright (c) 2022 Jeremy Long. All Rights Reserved.
  17.  */
  18. package org.owasp.dependencycheck.reporting;

  19. import io.github.jeremylong.openvulnerability.client.nvd.CvssV2;
  20. import io.github.jeremylong.openvulnerability.client.nvd.CvssV3;
  21. import io.github.jeremylong.openvulnerability.client.nvd.CvssV4;

  22. /**
  23.  *
  24.  * @author Jeremy Long
  25.  */
  26. public class SarifRule {

  27.     /**
  28.      * The rule id.
  29.      */
  30.     private String id;
  31.     /**
  32.      * The short description.
  33.      */
  34.     private String shortDescription;
  35.     /**
  36.      * The full description.
  37.      */
  38.     private String fullDescription;
  39.     /**
  40.      * The name of the rule.
  41.      */
  42.     private String name;
  43.     /**
  44.      * CVSS V2 field.
  45.      */
  46.     private String cvssv2Score;
  47.     /**
  48.      * CVSS V2 field.
  49.      */
  50.     private String cvssv2AccessVector;
  51.     /**
  52.      * CVSS V2 field.
  53.      */
  54.     private String cvssv2AccessComplexity;
  55.     /**
  56.      * CVSS V2 field.
  57.      */
  58.     private String cvssv2Authentication;
  59.     /**
  60.      * CVSS V2 field.
  61.      */
  62.     private String cvssv2ConfidentialityImpact;
  63.     /**
  64.      * CVSS V2 field.
  65.      */
  66.     private String cvssv2IntegrityImpact;
  67.     /**
  68.      * CVSS V2 field.
  69.      */
  70.     private String cvssv2AvailabilityImpact;
  71.     /**
  72.      * CVSS V2 field.
  73.      */
  74.     private String cvssv2Severity;
  75.     /**
  76.      * CVSS V2 field.
  77.      */
  78.     private String cvssv2Version;
  79.     /**
  80.      * CVSS V2 field.
  81.      */
  82.     private String cvssv2ExploitabilityScore;
  83.     /**
  84.      * CVSS V2 field.
  85.      */
  86.     private String cvssv2ImpactScore;
  87.     /**
  88.      * CVSS V3 field.
  89.      */
  90.     private String cvssv3BaseScore;
  91.     /**
  92.      * CVSS V3 field.
  93.      */
  94.     private String cvssv3AttackVector;
  95.     /**
  96.      * CVSS V3 field.
  97.      */
  98.     private String cvssv3AttackComplexity;
  99.     /**
  100.      * CVSS V3 field.
  101.      */
  102.     private String cvssv3PrivilegesRequired;
  103.     /**
  104.      * CVSS V3 field.
  105.      */
  106.     private String cvssv3UserInteraction;
  107.     /**
  108.      * CVSS V3 field.
  109.      */
  110.     private String cvssv3Scope;
  111.     /**
  112.      * CVSS V3 field.
  113.      */
  114.     private String cvssv3ConfidentialityImpact;
  115.     /**
  116.      * CVSS V3 field.
  117.      */
  118.     private String cvssv3IntegrityImpact;
  119.     /**
  120.      * CVSS V3 field.
  121.      */
  122.     private String cvssv3AvailabilityImpact;
  123.     /**
  124.      * CVSS V3 field.
  125.      */
  126.     private String cvssv3BaseSeverity;
  127.     /**
  128.      * CVSS V3 field.
  129.      */
  130.     private String cvssv3ExploitabilityScore;
  131.     /**
  132.      * CVSS V3 field.
  133.      */
  134.     private String cvssv3ImpactScore;
  135.     /**
  136.      * CVSS V3 field.
  137.      */
  138.     private String cvssv3Version;
  139.     /**
  140.      * CVSS V4 field.
  141.      */
  142.     private String cvssv4BaseScore;
  143.     /**
  144.      * CVSS V4 Vector.
  145.      */
  146.     private String cvssv4Vector;
  147.     /**
  148.      * The source of the rule.
  149.      */
  150.     private String source;

  151.     /**
  152.      * Constructs a new SARIF rule object.
  153.      *
  154.      * @param name the name of the rule
  155.      * @param shortDescription the short description
  156.      * @param fullDescription the full description
  157.      * @param source the source
  158.      * @param cvssV2 the CVSS v2 score
  159.      * @param cvssV3 the CVSS v3 score
  160.      * @param cvssV4 the CVSS v4 score
  161.      */
  162.     public SarifRule(String name, String shortDescription, String fullDescription,
  163.                      String source, CvssV2 cvssV2, CvssV3 cvssV3, CvssV4 cvssV4) {
  164.         this.id = name;
  165.         this.name = name;
  166.         this.shortDescription = shortDescription;
  167.         this.fullDescription = fullDescription;
  168.         this.source = source;
  169.         if (cvssV2 != null) {
  170.             if (cvssV2.getCvssData().getBaseScore() != null) {
  171.                 this.cvssv2Score = cvssV2.getCvssData().getBaseScore().toString();
  172.             }
  173.             if (cvssV2.getCvssData().getAccessVector() != null) {
  174.                 this.cvssv2AccessVector = cvssV2.getCvssData().getAccessVector().name();
  175.             }
  176.             if (cvssV2.getCvssData().getAccessComplexity() != null) {
  177.                 this.cvssv2AccessComplexity = cvssV2.getCvssData().getAccessComplexity().name();
  178.             }
  179.             if (cvssV2.getCvssData().getAuthentication() != null) {
  180.                 this.cvssv2Authentication = cvssV2.getCvssData().getAuthentication().name();
  181.             }
  182.             if (cvssV2.getCvssData().getConfidentialityImpact() != null) {
  183.                 this.cvssv2ConfidentialityImpact = cvssV2.getCvssData().getConfidentialityImpact().name();
  184.             }
  185.             if (cvssV2.getCvssData().getIntegrityImpact() != null) {
  186.                 this.cvssv2IntegrityImpact = cvssV2.getCvssData().getIntegrityImpact().name();
  187.             }
  188.             if (cvssV2.getCvssData().getAvailabilityImpact() != null) {
  189.                 this.cvssv2AvailabilityImpact = cvssV2.getCvssData().getAvailabilityImpact().name();
  190.             }
  191.             this.cvssv2Severity = cvssV2.getCvssData().getBaseSeverity();
  192.             if (cvssV2.getCvssData().getVersion() != null) {
  193.                 this.cvssv2Version = cvssV2.getCvssData().getVersion().name();
  194.             }
  195.             if (cvssV2.getExploitabilityScore() != null) {
  196.                 this.cvssv2ExploitabilityScore = cvssV2.getExploitabilityScore().toString();
  197.             }
  198.             if (cvssV2.getImpactScore() != null) {
  199.                 this.cvssv2ImpactScore = cvssV2.getImpactScore().toString();
  200.             }
  201.         }
  202.         if (cvssV3 != null) {
  203.             if (cvssV3.getCvssData().getBaseScore() != null) {
  204.                 this.cvssv3BaseScore = cvssV3.getCvssData().getBaseScore().toString();
  205.             }
  206.             if (cvssV3.getCvssData().getAttackVector() != null) {
  207.                 this.cvssv3AttackVector = cvssV3.getCvssData().getAttackVector().name();
  208.             }
  209.             if (cvssV3.getCvssData().getAttackComplexity() != null) {
  210.                 this.cvssv3AttackComplexity = cvssV3.getCvssData().getAttackComplexity().name();
  211.             }
  212.             if (cvssV3.getCvssData().getPrivilegesRequired() != null) {
  213.                 this.cvssv3PrivilegesRequired = cvssV3.getCvssData().getPrivilegesRequired().name();
  214.             }
  215.             if (cvssV3.getCvssData().getUserInteraction() != null) {
  216.                 this.cvssv3UserInteraction = cvssV3.getCvssData().getUserInteraction().name();
  217.             }
  218.             if (cvssV3.getCvssData().getScope() != null) {
  219.                 this.cvssv3Scope = cvssV3.getCvssData().getScope().name();
  220.             }
  221.             if (cvssV3.getCvssData().getConfidentialityImpact() != null) {
  222.                 this.cvssv3ConfidentialityImpact = cvssV3.getCvssData().getConfidentialityImpact().name();
  223.             }
  224.             if (cvssV3.getCvssData().getIntegrityImpact() != null) {
  225.                 this.cvssv3IntegrityImpact = cvssV3.getCvssData().getIntegrityImpact().name();
  226.             }
  227.             if (cvssV3.getCvssData().getAvailabilityImpact() != null) {
  228.                 this.cvssv3AvailabilityImpact = cvssV3.getCvssData().getAvailabilityImpact().name();
  229.             }
  230.             if (cvssV3.getCvssData().getBaseSeverity() != null) {
  231.                 this.cvssv3BaseSeverity = cvssV3.getCvssData().getBaseSeverity().name();
  232.             }
  233.             if (cvssV3.getExploitabilityScore() != null) {
  234.                 this.cvssv3ExploitabilityScore = cvssV3.getExploitabilityScore().toString();
  235.             }
  236.             if (cvssV3.getImpactScore() != null) {
  237.                 this.cvssv3ImpactScore = cvssV3.getImpactScore().toString();
  238.             }
  239.             this.cvssv3Version = cvssV3.getCvssData().getVersion().name();
  240.         }
  241.         if (cvssV4 != null && cvssV4.getCvssData() != null) {
  242.             if (cvssV4.getCvssData().getBaseScore() != null) {
  243.                 this.cvssv4BaseScore = cvssV4.getCvssData().getBaseScore().toString();
  244.             }
  245.             this.cvssv4Vector = cvssV4.toString();
  246.         }
  247.     }

  248.     /**
  249.      * Get the value of source.
  250.      *
  251.      * @return the value of source
  252.      */
  253.     public String getSource() {
  254.         return source;
  255.     }

  256.     /**
  257.      * Set the value of source.
  258.      *
  259.      * @param source new value of source
  260.      */
  261.     public void setSource(String source) {
  262.         this.source = source;
  263.     }

  264.     /**
  265.      * Get the value of CVSS3 Version.
  266.      *
  267.      * @return the value of CVSS3 Version
  268.      */
  269.     public String getCvssv3Version() {
  270.         return cvssv3Version;
  271.     }

  272.     /**
  273.      * Set the value of CVSS3 Version.
  274.      *
  275.      * @param cvssv3Version new value of CVSS3 Version
  276.      */
  277.     public void setCvssv3Version(String cvssv3Version) {
  278.         this.cvssv3Version = cvssv3Version;
  279.     }

  280.     /**
  281.      * Get the value of CVSS3 Impact Score.
  282.      *
  283.      * @return the value of CVSS3 Impact Score
  284.      */
  285.     public String getCvssv3ImpactScore() {
  286.         return cvssv3ImpactScore;
  287.     }

  288.     /**
  289.      * Set the value of CVSS3 Impact Score.
  290.      *
  291.      * @param cvssv3ImpactScore new value of CVSS3 Impact Score
  292.      */
  293.     public void setCvssv3ImpactScore(String cvssv3ImpactScore) {
  294.         this.cvssv3ImpactScore = cvssv3ImpactScore;
  295.     }

  296.     /**
  297.      * Get the value of CVSS3 Exploitability Score.
  298.      *
  299.      * @return the value of CVSS3 Exploitability Score
  300.      */
  301.     public String getCvssv3ExploitabilityScore() {
  302.         return cvssv3ExploitabilityScore;
  303.     }

  304.     /**
  305.      * Set the value of CVSS3 Exploitability Score.
  306.      *
  307.      * @param cvssv3ExploitabilityScore new value of CVSS3 Exploitability Score
  308.      */
  309.     public void setCvssv3ExploitabilityScore(String cvssv3ExploitabilityScore) {
  310.         this.cvssv3ExploitabilityScore = cvssv3ExploitabilityScore;
  311.     }

  312.     /**
  313.      * Get the value of CVSS3 Base Severity.
  314.      *
  315.      * @return the value of CVSS3 Base Severity
  316.      */
  317.     public String getCvssv3BaseSeverity() {
  318.         return cvssv3BaseSeverity;
  319.     }

  320.     /**
  321.      * Set the value of CVSS3 Base Severity.
  322.      *
  323.      * @param cvssv3BaseSeverity new value of CVSS3 Base Severity
  324.      */
  325.     public void setCvssv3BaseSeverity(String cvssv3BaseSeverity) {
  326.         this.cvssv3BaseSeverity = cvssv3BaseSeverity;
  327.     }

  328.     /**
  329.      * Get the value of CVSS3 Availability Impact.
  330.      *
  331.      * @return the value of CVSS3 Availability Impact
  332.      */
  333.     public String getCvssv3AvailabilityImpact() {
  334.         return cvssv3AvailabilityImpact;
  335.     }

  336.     /**
  337.      * Set the value of CVSS3 Availability Impact.
  338.      *
  339.      * @param cvssv3AvailabilityImpact new value of CVSS3 Availability Impact
  340.      */
  341.     public void setCvssv3AvailabilityImpact(String cvssv3AvailabilityImpact) {
  342.         this.cvssv3AvailabilityImpact = cvssv3AvailabilityImpact;
  343.     }

  344.     /**
  345.      * Get the value of CVSS3 Integrity Impact.
  346.      *
  347.      * @return the value of CVSS3 Integrity Impact
  348.      */
  349.     public String getCvssv3IntegrityImpact() {
  350.         return cvssv3IntegrityImpact;
  351.     }

  352.     /**
  353.      * Set the value of CVSS3 Integrity Impact.
  354.      *
  355.      * @param cvssv3IntegrityImpact new value of CVSS3 Integrity Impact
  356.      */
  357.     public void setCvssv3IntegrityImpact(String cvssv3IntegrityImpact) {
  358.         this.cvssv3IntegrityImpact = cvssv3IntegrityImpact;
  359.     }

  360.     /**
  361.      * Get the value of CVSS3 Confidentiality Impact.
  362.      *
  363.      * @return the value of CVSS3 Confidentiality Impact
  364.      */
  365.     public String getCvssv3ConfidentialityImpact() {
  366.         return cvssv3ConfidentialityImpact;
  367.     }

  368.     /**
  369.      * Set the value of CVSS3 Confidentiality Impact.
  370.      *
  371.      * @param cvssv3ConfidentialityImpact new value of CVSS3 Confidentiality
  372.      * Impact
  373.      */
  374.     public void setCvssv3ConfidentialityImpact(String cvssv3ConfidentialityImpact) {
  375.         this.cvssv3ConfidentialityImpact = cvssv3ConfidentialityImpact;
  376.     }

  377.     /**
  378.      * Get the value of CVSS3 Scope.
  379.      *
  380.      * @return the value of CVSS3 Scope
  381.      */
  382.     public String getCvssv3Scope() {
  383.         return cvssv3Scope;
  384.     }

  385.     /**
  386.      * Set the value of CVSS3 Scope.
  387.      *
  388.      * @param cvssv3Scope new value of CVSS3 Scope
  389.      */
  390.     public void setCvssv3Scope(String cvssv3Scope) {
  391.         this.cvssv3Scope = cvssv3Scope;
  392.     }

  393.     /**
  394.      * Get the value of CVSS3 User Interaction.
  395.      *
  396.      * @return the value of CVSS3 User Interaction
  397.      */
  398.     public String getCvssv3UserInteraction() {
  399.         return cvssv3UserInteraction;
  400.     }

  401.     /**
  402.      * Set the value of CVSS3 User Interaction.
  403.      *
  404.      * @param cvssv3UserInteraction new value of CVSS3 User Interaction
  405.      */
  406.     public void setCvssv3UserInteraction(String cvssv3UserInteraction) {
  407.         this.cvssv3UserInteraction = cvssv3UserInteraction;
  408.     }

  409.     /**
  410.      * Get the value of CVSS3 Privileges Required.
  411.      *
  412.      * @return the value of CVSS3 Privileges Required
  413.      */
  414.     public String getCvssv3PrivilegesRequired() {
  415.         return cvssv3PrivilegesRequired;
  416.     }

  417.     /**
  418.      * Set the value of CVSS3 Privileges Required.
  419.      *
  420.      * @param cvssv3PrivilegesRequired new value of CVSS3 Privileges Required
  421.      */
  422.     public void setCvssv3PrivilegesRequired(String cvssv3PrivilegesRequired) {
  423.         this.cvssv3PrivilegesRequired = cvssv3PrivilegesRequired;
  424.     }

  425.     /**
  426.      * Get the value of CVSS3 Attack Complexity.
  427.      *
  428.      * @return the value of CVSS3 Attack Complexity
  429.      */
  430.     public String getCvssv3AttackComplexity() {
  431.         return cvssv3AttackComplexity;
  432.     }

  433.     /**
  434.      * Set the value of CVSS3 Attack Complexity.
  435.      *
  436.      * @param cvssv3AttackComplexity new value of CVSS3 Attack Complexity
  437.      */
  438.     public void setCvssv3AttackComplexity(String cvssv3AttackComplexity) {
  439.         this.cvssv3AttackComplexity = cvssv3AttackComplexity;
  440.     }

  441.     /**
  442.      * Get the value of CVSS3 Attack Vector.
  443.      *
  444.      * @return the value of CVSS3 Attack Vector
  445.      */
  446.     public String getCvssv3AttackVector() {
  447.         return cvssv3AttackVector;
  448.     }

  449.     /**
  450.      * Set the value of CVSS3 Attack Vector.
  451.      *
  452.      * @param cvssv3AttackVector new value of CVSS3 Attack Vector
  453.      */
  454.     public void setCvssv3AttackVector(String cvssv3AttackVector) {
  455.         this.cvssv3AttackVector = cvssv3AttackVector;
  456.     }

  457.     /**
  458.      * Get the value of CVSS3 Base Score.
  459.      *
  460.      * @return the value of CVSS3 Base Score
  461.      */
  462.     public String getCvssv3BaseScore() {
  463.         return cvssv3BaseScore;
  464.     }

  465.     /**
  466.      * Set the value of CVSS3 Base Score.
  467.      *
  468.      * @param cvssv3BaseScore new value of CVSS3 Base Score
  469.      */
  470.     public void setCvssv3BaseScore(String cvssv3BaseScore) {
  471.         this.cvssv3BaseScore = cvssv3BaseScore;
  472.     }

  473.     /**
  474.      * Get the value of CVSS2 Impact Score.
  475.      *
  476.      * @return the value of CVSS2 Impact Score
  477.      */
  478.     public String getCvssv2ImpactScore() {
  479.         return cvssv2ImpactScore;
  480.     }

  481.     /**
  482.      * Set the value of CVSS2 Impact Score.
  483.      *
  484.      * @param cvssv2ImpactScore new value of CVSS2 Impact Score
  485.      */
  486.     public void setCvssv2ImpactScore(String cvssv2ImpactScore) {
  487.         this.cvssv2ImpactScore = cvssv2ImpactScore;
  488.     }

  489.     /**
  490.      * Get the value of CVSS2 Exploitability Score.
  491.      *
  492.      * @return the value of CVSS2 Exploitability Score
  493.      */
  494.     public String getCvssv2ExploitabilityScore() {
  495.         return cvssv2ExploitabilityScore;
  496.     }

  497.     /**
  498.      * Set the value of CVSS2 Exploitability Score.
  499.      *
  500.      * @param cvssv2ExploitabilityScore new value of CVSS2 Exploitability Score
  501.      */
  502.     public void setCvssv2ExploitabilityScore(String cvssv2ExploitabilityScore) {
  503.         this.cvssv2ExploitabilityScore = cvssv2ExploitabilityScore;
  504.     }

  505.     /**
  506.      * Get the value of CVSS2 Version.
  507.      *
  508.      * @return the value of CVSS2 Version
  509.      */
  510.     public String getCvssv2Version() {
  511.         return cvssv2Version;
  512.     }

  513.     /**
  514.      * Set the value of CVSS2 Version.
  515.      *
  516.      * @param cvssv2Version new value of CVSS2 Version
  517.      */
  518.     public void setCvssv2Version(String cvssv2Version) {
  519.         this.cvssv2Version = cvssv2Version;
  520.     }

  521.     /**
  522.      * Get the value of CVSS2 Severity.
  523.      *
  524.      * @return the value of CVSS2 Severity
  525.      */
  526.     public String getCvssv2Severity() {
  527.         return cvssv2Severity;
  528.     }

  529.     /**
  530.      * Set the value of CVSS2 Severity.
  531.      *
  532.      * @param cvssv2Severity new value of CVSS2 Severity
  533.      */
  534.     public void setCvssv2Severity(String cvssv2Severity) {
  535.         this.cvssv2Severity = cvssv2Severity;
  536.     }

  537.     /**
  538.      * Get the value of CVSS2 Availability Impact.
  539.      *
  540.      * @return the value of CVSS2 Availability Impact
  541.      */
  542.     public String getCvssv2AvailabilityImpact() {
  543.         return cvssv2AvailabilityImpact;
  544.     }

  545.     /**
  546.      * Set the value of CVSS2 Availability Impact.
  547.      *
  548.      * @param cvssv2AvailabilityImpact new value of CVSS2 Availability Impact
  549.      */
  550.     public void setCvssv2AvailabilityImpact(String cvssv2AvailabilityImpact) {
  551.         this.cvssv2AvailabilityImpact = cvssv2AvailabilityImpact;
  552.     }

  553.     /**
  554.      * Get the value of CVSS2 Integrity Impact.
  555.      *
  556.      * @return the value of CVSS2 Integrity Impact
  557.      */
  558.     public String getCvssv2IntegrityImpact() {
  559.         return cvssv2IntegrityImpact;
  560.     }

  561.     /**
  562.      * Set the value of CVSS2 Integrity Impact.
  563.      *
  564.      * @param cvssv2IntegrityImpact new value of CVSS2 Integrity Impact
  565.      */
  566.     public void setCvssv2IntegrityImpact(String cvssv2IntegrityImpact) {
  567.         this.cvssv2IntegrityImpact = cvssv2IntegrityImpact;
  568.     }

  569.     /**
  570.      * Get the value of CVSS2 Confidentiality Impact.
  571.      *
  572.      * @return the value of CVSS2 Confidentiality Impact
  573.      */
  574.     public String getCvssv2ConfidentialityImpact() {
  575.         return cvssv2ConfidentialityImpact;
  576.     }

  577.     /**
  578.      * Set the value of CVSS2 Confidentiality Impact.
  579.      *
  580.      * @param cvssv2ConfidentialityImpact new value of CVSS2 Confidentiality Impact
  581.      */
  582.     public void setCvssv2ConfidentialityImpact(String cvssv2ConfidentialityImpact) {
  583.         this.cvssv2ConfidentialityImpact = cvssv2ConfidentialityImpact;
  584.     }

  585.     /**
  586.      * Get the value of CVSS2 Authentication.
  587.      *
  588.      * @return the value of CVSS2 Authentication
  589.      */
  590.     public String getCvssv2Authentication() {
  591.         return cvssv2Authentication;
  592.     }

  593.     /**
  594.      * Set the value of CVSS2 Authentication.
  595.      *
  596.      * @param cvssv2Authentication new value of CVSS2 Authentication
  597.      */
  598.     public void setCvssv2Authentication(String cvssv2Authentication) {
  599.         this.cvssv2Authentication = cvssv2Authentication;
  600.     }

  601.     /**
  602.      * Get the value of CVSS2 Access Complexity.
  603.      *
  604.      * @return the value of CVSS2 Access Complexity
  605.      */
  606.     public String getCvssv2AccessComplexity() {
  607.         return cvssv2AccessComplexity;
  608.     }

  609.     /**
  610.      * Set the value of CVSS2 Access Complexity.
  611.      *
  612.      * @param cvssv2AccessComplexity new value of CVSS2 Access Complexity
  613.      */
  614.     public void setCvssv2AccessComplexity(String cvssv2AccessComplexity) {
  615.         this.cvssv2AccessComplexity = cvssv2AccessComplexity;
  616.     }

  617.     /**
  618.      * Get the value of CVSS2 Access Vector.
  619.      *
  620.      * @return the value of CVSS2 Access Vector
  621.      */
  622.     public String getCvssv2AccessVector() {
  623.         return cvssv2AccessVector;
  624.     }

  625.     /**
  626.      * Set the value of CVSS2 Access Vector.
  627.      *
  628.      * @param cvssv2AccessVector new value of CVSS2 Access Vector
  629.      */
  630.     public void setCvssv2AccessVector(String cvssv2AccessVector) {
  631.         this.cvssv2AccessVector = cvssv2AccessVector;
  632.     }

  633.     /**
  634.      * Get the value of CVSS2 Score.
  635.      *
  636.      * @return the value of CVSS2 Score
  637.      */
  638.     public String getCvssv2Score() {
  639.         return cvssv2Score;
  640.     }

  641.     /**
  642.      * Set the value of CVSS2 Score.
  643.      *
  644.      * @param cvssv2Score new value of CVSS2 Score
  645.      */
  646.     public void setCvssv2Score(String cvssv2Score) {
  647.         this.cvssv2Score = cvssv2Score;
  648.     }

  649.     /**
  650.      * Get the name.
  651.      *
  652.      * @return the name
  653.      */
  654.     public String getName() {
  655.         return name;
  656.     }

  657.     /**
  658.      * Set the name.
  659.      *
  660.      * @param name the name
  661.      */
  662.     public void setName(String name) {
  663.         this.name = name;
  664.     }

  665.     /**
  666.      * Get the full description.
  667.      *
  668.      * @return the value of full description
  669.      */
  670.     public String getFullDescription() {
  671.         return fullDescription;
  672.     }

  673.     /**
  674.      * Set the full description.
  675.      *
  676.      * @param fullDescription the full description
  677.      */
  678.     public void setFullDescription(String fullDescription) {
  679.         this.fullDescription = fullDescription;
  680.     }

  681.     /**
  682.      * Get the short description.
  683.      *
  684.      * @return the short description
  685.      */
  686.     public String getShortDescription() {
  687.         return shortDescription;
  688.     }

  689.     /**
  690.      * Set the short description.
  691.      *
  692.      * @param shortDescription the short description
  693.      */
  694.     public void setShortDescription(String shortDescription) {
  695.         this.shortDescription = shortDescription;
  696.     }

  697.     /**
  698.      * Get the value of id.
  699.      *
  700.      * @return the value of id
  701.      */
  702.     public String getId() {
  703.         return id;
  704.     }

  705.     /**
  706.      * Set the value of id.
  707.      *
  708.      * @param id new value of id
  709.      */
  710.     public void setId(String id) {
  711.         this.id = id;
  712.     }

  713.     /**
  714.      * Get the value of CVSS4 Base Score.
  715.      *
  716.      * @return the value of CVSS4 Base Score
  717.      */
  718.     public String getCvssv4BaseScore() {
  719.         return cvssv4BaseScore;
  720.     }

  721.     /**
  722.      * Set the value of CVSS4 Base Score.
  723.      * @param cvssv4BaseScore new value of CVSS4 Base Score
  724.      */
  725.     public void setCvssv4BaseScore(String cvssv4BaseScore) {
  726.         this.cvssv4BaseScore = cvssv4BaseScore;
  727.     }

  728.     /**
  729.      * Get the Cvssv4 Vector.
  730.      * @return the Cvssv4 Vector
  731.      */
  732.     public String getCvssv4Vector() {
  733.         return cvssv4Vector;
  734.     }

  735.     /**
  736.      * Set the Cvssv4 Vector.
  737.      * @param cvssv4Vector new value of Cvssv4 Vector
  738.      */
  739.     public void setCvssv4Vector(String cvssv4Vector) {
  740.         this.cvssv4Vector = cvssv4Vector;
  741.     }
  742. }