Class MixAuditResult


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

      Constructors 
      Constructor Description
      MixAuditResult​(java.lang.String id, java.lang.String cve, java.lang.String title, java.lang.String description, java.lang.String disclosureDate, java.lang.String url, java.util.List<java.lang.String> patchedVersions, java.lang.String dependencyLockfile, java.lang.String dependencyPackage, java.lang.String dependencyVersion)
      Constructs a new Mix Audit Result.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCve()
      Returns the CVE entry name.
      java.lang.String getDependencyLockfile()
      Returns the path to the dependency lock file.
      java.lang.String getDependencyPackage()
      Returns the package name.
      java.lang.String getDependencyVersion()
      Returns the dependency version.
      java.lang.String getDescription()
      Returns the vulnerability description.
      java.lang.String getDisclosureDate()
      Returns the vulnerability disclosure date.
      java.lang.String getId()
      Returns the vulnerability id.
      java.util.List<java.lang.String> getPatchedVersions()
      Returns the list of patched versions.
      java.lang.String getTitle()
      Returns the vulnerability title.
      java.lang.String getUrl()
      Returns the URL to the vulnerability page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MixAuditResult

        public MixAuditResult​(java.lang.String id,
                              java.lang.String cve,
                              java.lang.String title,
                              java.lang.String description,
                              java.lang.String disclosureDate,
                              java.lang.String url,
                              java.util.List<java.lang.String> patchedVersions,
                              java.lang.String dependencyLockfile,
                              java.lang.String dependencyPackage,
                              java.lang.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 Detail

      • getId

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

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

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

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

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

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

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

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

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

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