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 floatgetCVSSScore()Returns a Common Vulnerability Scoring System (CVSS) score to measure the issue.StringgetCVSSv3()Returns the Common Vulnerability Scoring System (CVSS).StringgetDescription()Returns a detailed description of the issue.DategetDisclosureTime()Return the date when the issue was disclosed to the package maintainers.longgetId()Returns the issue's id as a String.Map<String,String>getIdentifiers()Returns a map of common categorization identifiers for example CWE.StringgetLanguage()Returns the programming language the package that got the issue is written in.StringgetPackage()Returns the package identifier for the package that got the issue.StringgetPackageVersion()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.DategetPublicationTime()Returns the date when the issue was first published.StringgetSeverity()Returns the level of severity of the issue.StringgetTitle()Returns the issue's name.StringgetUrl()Get a URL where one may get further information about the issue.StringtoString()
-
-
-
Method Detail
-
getId
public long getId()
Description copied from interface:IStaticCodeAnalysisIssueReturns the issue's id as a String. The id is used to identify the issue for further use.- Specified by:
getIdin interfaceIStaticCodeAnalysisIssue- Returns:
- String representing the issue's id.
-
getUrl
public String getUrl()
Description copied from interface:IStaticCodeAnalysisIssueGet a URL where one may get further information about the issue.- Specified by:
getUrlin interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's information URL.
-
getTitle
public String getTitle()
Description copied from interface:IStaticCodeAnalysisIssueReturns the issue's name. Use it for a human-readable communication.- Specified by:
getTitlein interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's name.
-
getPaths
public String[] getPaths()
Description copied from interface:IStaticCodeAnalysisIssueReturns an array of String that represent paths to the dependencies that got an issue.- Specified by:
getPathsin interfaceIStaticCodeAnalysisIssue- Returns:
- Paths to the Dependencies
-
getPackage
public String getPackage()
Description copied from interface:IStaticCodeAnalysisIssueReturns the package identifier for the package that got the issue. The identifier received form the package manager,- Specified by:
getPackagein interfaceIStaticCodeAnalysisIssue- Returns:
- Package identifier.
-
getPackageVersion
public String getPackageVersion()
Description copied from interface:IStaticCodeAnalysisIssueReturns the package version of the package that got the issue.- Specified by:
getPackageVersionin interfaceIStaticCodeAnalysisIssue- Returns:
- Package version.
-
getSeverity
public String getSeverity()
Description copied from interface:IStaticCodeAnalysisIssueReturns the level of severity of the issue.- Specified by:
getSeverityin interfaceIStaticCodeAnalysisIssue- Returns:
- Severity.
-
getLanguage
public String getLanguage()
Description copied from interface:IStaticCodeAnalysisIssueReturns the programming language the package that got the issue is written in.- Specified by:
getLanguagein interfaceIStaticCodeAnalysisIssue- Returns:
- Package's programming language.
-
getPublicationTime
public Date getPublicationTime()
Description copied from interface:IStaticCodeAnalysisIssueReturns the date when the issue was first published.- Specified by:
getPublicationTimein interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's publish data
-
getDisclosureTime
public Date getDisclosureTime()
Description copied from interface:IStaticCodeAnalysisIssueReturn the date when the issue was disclosed to the package maintainers.- Specified by:
getDisclosureTimein interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's disclosure time,
-
getDescription
public String getDescription()
Description copied from interface:IStaticCodeAnalysisIssueReturns a detailed description of the issue.- Specified by:
getDescriptionin interfaceIStaticCodeAnalysisIssue- Returns:
- Issue description.
-
getIdentifiers
public Map<String,String> getIdentifiers()
Description copied from interface:IStaticCodeAnalysisIssueReturns a map of common categorization identifiers for example CWE. The maps keys are the categorization providers. The values are the identifiers.- Specified by:
getIdentifiersin interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's categorization identifiers,
-
getCVSSv3
public String getCVSSv3()
Description copied from interface:IStaticCodeAnalysisIssueReturns the Common Vulnerability Scoring System (CVSS).- Specified by:
getCVSSv3in interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's CVSS
-
getCVSSScore
public float getCVSSScore()
Description copied from interface:IStaticCodeAnalysisIssueReturns a Common Vulnerability Scoring System (CVSS) score to measure the issue.- Specified by:
getCVSSScorein interfaceIStaticCodeAnalysisIssue- Returns:
- Issue's CVSS score
-
-