Class MixAuditResult
- java.lang.Object
-
- org.owasp.dependencycheck.data.elixir.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.
-
-
-
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 idcve
- the CVE entry nametitle
- the CVE titledescription
- the description of the vulnerabilitydisclosureDate
- the vulnerability disclosure dateurl
- a link to the vulnerability informationpatchedVersions
- the list of patched versionsdependencyLockfile
- the path to the lock filedependencyPackage
- the name of the dependencydependencyVersion
- 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
-
-