Class SnykIssue
java.lang.Object
org.palladiosimulator.retriever.vulnerability.core.SnykIssue
- All Implemented Interfaces:
IStaticCodeAnalysisIssue
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.Returns the Common Vulnerability Scoring System (CVSS).Returns a detailed description of the issue.Return the date when the issue was disclosed to the package maintainers.long
getId()
Returns the issue's id as a String.Returns a map of common categorization identifiers for example CWE.Returns the programming language the package that got the issue is written in.Returns the package identifier for the package that got the issue.Returns the package version of the package that got the issue.String[]
getPaths()
Returns an array of String that represent paths to the dependencies that got an issue.Returns the date when the issue was first published.Returns the level of severity of the issue.getTitle()
Returns the issue's name.getUrl()
Get a URL where one may get further information about the issue.toString()
-
Constructor Details
-
SnykIssue
-
-
Method Details
-
getId
public long getId()Description copied from interface:IStaticCodeAnalysisIssue
Returns the issue's id as a String. The id is used to identify the issue for further use.- Specified by:
getId
in interfaceIStaticCodeAnalysisIssue
- Returns:
- String representing the issue's id.
-
getUrl
Description copied from interface:IStaticCodeAnalysisIssue
Get a URL where one may get further information about the issue.- Specified by:
getUrl
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's information URL.
-
getTitle
Description copied from interface:IStaticCodeAnalysisIssue
Returns the issue's name. Use it for a human-readable communication.- Specified by:
getTitle
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's name.
-
getPaths
Description copied from interface:IStaticCodeAnalysisIssue
Returns an array of String that represent paths to the dependencies that got an issue.- Specified by:
getPaths
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Paths to the Dependencies
-
getPackage
Description copied from interface:IStaticCodeAnalysisIssue
Returns the package identifier for the package that got the issue. The identifier received form the package manager,- Specified by:
getPackage
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Package identifier.
-
getPackageVersion
Description copied from interface:IStaticCodeAnalysisIssue
Returns the package version of the package that got the issue.- Specified by:
getPackageVersion
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Package version.
-
getSeverity
Description copied from interface:IStaticCodeAnalysisIssue
Returns the level of severity of the issue.- Specified by:
getSeverity
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Severity.
-
getLanguage
Description copied from interface:IStaticCodeAnalysisIssue
Returns the programming language the package that got the issue is written in.- Specified by:
getLanguage
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Package's programming language.
-
getPublicationTime
Description copied from interface:IStaticCodeAnalysisIssue
Returns the date when the issue was first published.- Specified by:
getPublicationTime
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's publish data
-
getDisclosureTime
Description copied from interface:IStaticCodeAnalysisIssue
Return the date when the issue was disclosed to the package maintainers.- Specified by:
getDisclosureTime
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's disclosure time,
-
getDescription
Description copied from interface:IStaticCodeAnalysisIssue
Returns a detailed description of the issue.- Specified by:
getDescription
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue description.
-
getIdentifiers
Description copied from interface:IStaticCodeAnalysisIssue
Returns a map of common categorization identifiers for example CWE. The maps keys are the categorization providers. The values are the identifiers.- Specified by:
getIdentifiers
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's categorization identifiers,
-
getCVSSv3
Description copied from interface:IStaticCodeAnalysisIssue
Returns the Common Vulnerability Scoring System (CVSS).- Specified by:
getCVSSv3
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's CVSS
-
getCVSSScore
public float getCVSSScore()Description copied from interface:IStaticCodeAnalysisIssue
Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.- Specified by:
getCVSSScore
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue's CVSS score
-
toString
-