Class SnykIssue
- java.lang.Object
-
- org.palladiosimulator.pcm.confidentiality.reverseengineering.staticcodeanalysis.parts.SnykIssue
-
- All Implemented Interfaces:
IStaticCodeAnalysisIssue
public class SnykIssue extends Object implements IStaticCodeAnalysisIssue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description float
getCVSSScore()
Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.String
getCVSSv3()
Returns the Common Vulnerability Scoring System (CVSS).String
getDescription()
Returns a detailed description of the issue.Date
getDisclosureTime()
Return the date when the issue was disclosed to the package maintainers.long
getId()
Returns the issue's id as a String.Map<String,String>
getIdentifiers()
Returns a map of common categorization identifiers for example CWE.String
getLanguage()
Returns the programming language the package that got the issue is written in.String
getPackage()
Returns the package identifier for the package that got the issue.String
getPackageVersion()
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.Date
getPublicationTime()
Returns the date when the issue was first published.String
getSeverity()
Returns the level of severity of the issue.String
getTitle()
Returns the issue's name.String
getUrl()
Get a URL where one may get further information about the issue.String
toString()
-
-
-
Method Detail
-
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
public String 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
public String 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
public String[] 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
public String 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
public String 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
public String getSeverity()
Description copied from interface:IStaticCodeAnalysisIssue
Returns the level of severity of the issue.- Specified by:
getSeverity
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Severity.
-
getLanguage
public String 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
public Date 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
public Date 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
public String getDescription()
Description copied from interface:IStaticCodeAnalysisIssue
Returns a detailed description of the issue.- Specified by:
getDescription
in interfaceIStaticCodeAnalysisIssue
- Returns:
- Issue description.
-
getIdentifiers
public Map<String,String> 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
public String 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
-
-