Class Vulnerability.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Vulnerability.Builder id​(String id)
        Unique vulnerability identifier, e.g.

        CVE-1999-0067.

        Parameters:
        id - the value to set
        Returns:
        this builder
      • source

        public Vulnerability.Builder source​(String source)
        Source that published the vulnerability
        Parameters:
        source - the value to set
        Returns:
        this builder
      • cvssV2Score

        public Vulnerability.Builder cvssV2Score​(Float cvssV2Score)
        Common Vulnerability Scoring System (CVSS) Version 2, calculated from the metrics provided in the CVSS vector provided from the vulnerability source.

        This field is deprecated and will be removed in the future. The cvssV2Score can be obtained from the metrics field of the listVulnerabilities endpoint.

        Parameters:
        cvssV2Score - the value to set
        Returns:
        this builder
      • cvssV3Score

        public Vulnerability.Builder cvssV3Score​(Float cvssV3Score)
        Common Vulnerability Scoring System (CVSS) Version 3, calculated from the metrics provided in the CVSS vector provided from the vulnerability source.

        This field is deprecated and will be removed in the future. The cvssV3Score can be obtained from the metrics field of the listVulnerabilities endpoint.

        Parameters:
        cvssV3Score - the value to set
        Returns:
        this builder
      • severity

        public Vulnerability.Builder severity​(VulnerabilitySeverity severity)
        ADM qualitative severity score.

        Can be either NONE, LOW, MEDIUM, HIGH or CRITICAL.

        Parameters:
        severity - the value to set
        Returns:
        this builder
      • isIgnored

        public Vulnerability.Builder isIgnored​(Boolean isIgnored)
        Indicates if the vulnerability was ignored according to the audit configuration.
        Parameters:
        isIgnored - the value to set
        Returns:
        this builder
      • isFalsePositive

        public Vulnerability.Builder isFalsePositive​(Boolean isFalsePositive)
        Indicates if the vulnerability is a false positive according to the usage data.

        If no usage data was provided or the service cannot infer usage of the vulnerable code then this property is null.

        Parameters:
        isFalsePositive - the value to set
        Returns:
        this builder