Class Vulnerability
java.lang.Object
com.vaadin.appsec.backend.model.dto.Vulnerability
- All Implemented Interfaces:
Serializable
DTO for a vulnerability instance, used in the UI.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVulnerability(@NotNull String identifier) Instantiates a new Vulnerability dto. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets affected version.Gets CVSS string.Gets dependency.Gets developer analysis.Gets identifier.Gets patched version.Gets risk score.Gets severity level.inthashCode()voidsetAffectedVersion(AffectedVersion affectedVersion) Sets affected version.voidsetDatePublished(Date datePublished) voidsetDependency(Dependency dependency) Sets dependency.voidsetDetails(String details) voidsetDeveloperAnalysis(String developerAnalysis) Sets developer analysis.voidsetDeveloperStatus(AppSecData.VulnerabilityStatus developerStatus) voidsetDeveloperUpdated(Instant developerUpdated) voidsetPatchedVersion(String patchedVersion) Sets patched version.voidsetReferenceUrls(Set<String> referenceUrls) toString()
-
Constructor Details
-
Vulnerability
Instantiates a new Vulnerability dto.- Parameters:
identifier- the identifier
-
-
Method Details
-
getIdentifier
Gets identifier.- Returns:
- the identifier
-
getDependency
Gets dependency.- Returns:
- the dependency
-
setDependency
Sets dependency.- Parameters:
dependency- the dependency
-
getPatchedVersion
Gets patched version.- Returns:
- the patched version
-
setPatchedVersion
Sets patched version.- Parameters:
patchedVersion- the patched version
-
getSeverityLevel
Gets severity level.- Returns:
- the severity level
-
getCvssString
Gets CVSS string.- Returns:
- the CVSS string
-
getRiskScore
Gets risk score.- Returns:
- the risk score
-
getAffectedVersion
Gets affected version.- Returns:
- the affected version
-
setAffectedVersion
Sets affected version.- Parameters:
affectedVersion- the affected version
-
getDeveloperAnalysis
Gets developer analysis.- Returns:
- the developer analysis
-
setDeveloperAnalysis
Sets developer analysis.- Parameters:
developerAnalysis- the developer analysis
-
getDatePublished
-
setDatePublished
-
getDetails
-
setDetails
-
getReferenceUrls
-
setReferenceUrls
-
getDeveloperStatus
-
setDeveloperStatus
-
getDeveloperUpdated
-
setDeveloperUpdated
-
equals
-
hashCode
public int hashCode() -
toString
-