Class OpenSourceVulnerability
java.lang.Object
com.vaadin.appsec.backend.model.osv.response.OpenSourceVulnerability
Open Source Vulnerability model for describing a vulnerability in an open
source package.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNo args constructor for use in serialization.OpenSourceVulnerability(String schemaVersion, String id, Date modified, Date published, Date withdrawn, List<String> aliases, List<String> related, String summary, String details, List<Severity> severity, List<Affected> affected, List<Reference> references, List<Credit> credits, DatabaseSpecific databaseSpecific) Instantiates a new open source vulnerability. -
Method Summary
Modifier and TypeMethodDescriptionDatabase specific.booleanGets the affected.Gets the aliases.Gets the credits.Gets the details.getId()Gets the id.Gets the modified.Gets the published.Gets the references.Gets the related.Gets the schema version.Gets the severity.Gets the summary.Gets the withdrawn.inthashCode()voidsetAffected(List<Affected> affected) Sets the affected.voidsetAliases(List<String> aliases) Sets the aliases.voidsetCredits(List<Credit> credits) Sets the credits.voidsetDatabaseSpecific(DatabaseSpecific databaseSpecific) Sets the database specific.voidsetDetails(String details) Sets the details.voidSets the id.voidsetModified(Date modified) Sets the modified.voidsetPublished(Date published) Sets the published.voidsetReferences(List<Reference> references) Sets the references.voidsetRelated(List<String> related) Sets the related.voidsetSchemaVersion(String schema_version) Sets the schema version.voidsetSeverity(List<Severity> severity) Sets the severity.voidsetSummary(String summary) Sets the summary.voidsetWithdrawn(Date withdrawn) Sets the withdrawn.toString()
-
Constructor Details
-
OpenSourceVulnerability
public OpenSourceVulnerability()No args constructor for use in serialization. -
OpenSourceVulnerability
public OpenSourceVulnerability(String schemaVersion, String id, Date modified, Date published, Date withdrawn, List<String> aliases, List<String> related, String summary, String details, List<Severity> severity, List<Affected> affected, List<Reference> references, List<Credit> credits, DatabaseSpecific databaseSpecific) Instantiates a new open source vulnerability.- Parameters:
schemaVersion- the schema versionid- the idmodified- the modifiedpublished- the publishedwithdrawn- the withdrawnaliases- the aliasesrelated- the relatedsummary- the summarydetails- the detailsseverity- the severityaffected- the affectedreferences- the referencescredits- the creditsdatabaseSpecific- the database specific
-
-
Method Details
-
getSchemaVersion
Gets the schema version.- Returns:
- the schema version
-
setSchemaVersion
Sets the schema version.- Parameters:
schema_version- the new schema version
-
getId
Gets the id.- Returns:
- the id
-
setId
Sets the id.- Parameters:
id- the new id
-
getModified
Gets the modified.- Returns:
- the modified
-
setModified
Sets the modified.- Parameters:
modified- the new modified
-
getPublished
Gets the published.- Returns:
- the published
-
setPublished
Sets the published.- Parameters:
published- the new published
-
getWithdrawn
Gets the withdrawn.- Returns:
- the withdrawn
-
setWithdrawn
Sets the withdrawn.- Parameters:
withdrawn- the new withdrawn
-
getAliases
Gets the aliases.- Returns:
- the aliases
-
setAliases
Sets the aliases.- Parameters:
aliases- the new aliases
-
getRelated
Gets the related.- Returns:
- the related
-
setRelated
Sets the related.- Parameters:
related- the new related
-
getSummary
Gets the summary.- Returns:
- the summary
-
setSummary
Sets the summary.- Parameters:
summary- the new summary
-
getDetails
Gets the details.- Returns:
- the details
-
setDetails
Sets the details.- Parameters:
details- the new details
-
getSeverity
Gets the severity.- Returns:
- the severity
-
setSeverity
Sets the severity.- Parameters:
severity- the new severity
-
getAffected
Gets the affected.- Returns:
- the affected
-
setAffected
Sets the affected.- Parameters:
affected- the new affected
-
getReferences
Gets the references.- Returns:
- the references
-
setReferences
Sets the references.- Parameters:
references- the new references
-
getCredits
Gets the credits.- Returns:
- the credits
-
setCredits
Sets the credits.- Parameters:
credits- the new credits
-
databaseSpecific
Database specific.- Returns:
- the database specific
-
setDatabaseSpecific
Sets the database specific.- Parameters:
databaseSpecific- the new database specific
-
equals
-
hashCode
public int hashCode() -
toString
-