Class MixAuditResult

java.lang.Object
org.owasp.dependencycheck.data.elixir.MixAuditResult

public class MixAuditResult extends Object
Represents a single vulnerability result from `mix_audit --format json`.
Author:
defsprite
  • Constructor Details

    • MixAuditResult

      public MixAuditResult(String id, String cve, String title, String description, String disclosureDate, String url, List<String> patchedVersions, String dependencyLockfile, String dependencyPackage, String dependencyVersion)
      Constructs a new Mix Audit Result.
      Parameters:
      id - the vulnerability id
      cve - the CVE entry name
      title - the CVE title
      description - the description of the vulnerability
      disclosureDate - the vulnerability disclosure date
      url - a link to the vulnerability information
      patchedVersions - the list of patched versions
      dependencyLockfile - the path to the lock file
      dependencyPackage - the name of the dependency
      dependencyVersion - the version of the dependency
  • Method Details

    • getId

      public String getId()
      Returns the vulnerability id.
      Returns:
      the vulnerability id
    • getCve

      public String getCve()
      Returns the CVE entry name.
      Returns:
      the CVE entry name
    • getTitle

      public String getTitle()
      Returns the vulnerability title.
      Returns:
      the vulnerability title
    • getDescription

      public String getDescription()
      Returns the vulnerability description.
      Returns:
      the vulnerability description
    • getDisclosureDate

      public String getDisclosureDate()
      Returns the vulnerability disclosure date.
      Returns:
      the vulnerability disclosure date
    • getUrl

      public String getUrl()
      Returns the URL to the vulnerability page.
      Returns:
      the URL to the vulnerability page
    • getPatchedVersions

      public List<String> getPatchedVersions()
      Returns the list of patched versions.
      Returns:
      the list of patched versions
    • getDependencyLockfile

      public String getDependencyLockfile()
      Returns the path to the dependency lock file.
      Returns:
      the path to the dependency lock file
    • getDependencyPackage

      public String getDependencyPackage()
      Returns the package name.
      Returns:
      the package name
    • getDependencyVersion

      public String getDependencyVersion()
      Returns the dependency version.
      Returns:
      the dependency version