Class OpenSourceVulnerability

java.lang.Object
com.vaadin.appsec.backend.model.osv.response.OpenSourceVulnerability

public class OpenSourceVulnerability extends Object
Open Source Vulnerability model for describing a vulnerability in an open source package.
See Also:
  • 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 version
      id - the id
      modified - the modified
      published - the published
      withdrawn - the withdrawn
      aliases - the aliases
      related - the related
      summary - the summary
      details - the details
      severity - the severity
      affected - the affected
      references - the references
      credits - the credits
      databaseSpecific - the database specific
  • Method Details

    • getSchemaVersion

      public String getSchemaVersion()
      Gets the schema version.
      Returns:
      the schema version
    • setSchemaVersion

      public void setSchemaVersion(String schema_version)
      Sets the schema version.
      Parameters:
      schema_version - the new schema version
    • getId

      public String getId()
      Gets the id.
      Returns:
      the id
    • setId

      public void setId(String id)
      Sets the id.
      Parameters:
      id - the new id
    • getModified

      public Date getModified()
      Gets the modified.
      Returns:
      the modified
    • setModified

      public void setModified(Date modified)
      Sets the modified.
      Parameters:
      modified - the new modified
    • getPublished

      public Date getPublished()
      Gets the published.
      Returns:
      the published
    • setPublished

      public void setPublished(Date published)
      Sets the published.
      Parameters:
      published - the new published
    • getWithdrawn

      public Date getWithdrawn()
      Gets the withdrawn.
      Returns:
      the withdrawn
    • setWithdrawn

      public void setWithdrawn(Date withdrawn)
      Sets the withdrawn.
      Parameters:
      withdrawn - the new withdrawn
    • getAliases

      public List<String> getAliases()
      Gets the aliases.
      Returns:
      the aliases
    • setAliases

      public void setAliases(List<String> aliases)
      Sets the aliases.
      Parameters:
      aliases - the new aliases
    • getRelated

      public List<String> getRelated()
      Gets the related.
      Returns:
      the related
    • setRelated

      public void setRelated(List<String> related)
      Sets the related.
      Parameters:
      related - the new related
    • getSummary

      public String getSummary()
      Gets the summary.
      Returns:
      the summary
    • setSummary

      public void setSummary(String summary)
      Sets the summary.
      Parameters:
      summary - the new summary
    • getDetails

      public String getDetails()
      Gets the details.
      Returns:
      the details
    • setDetails

      public void setDetails(String details)
      Sets the details.
      Parameters:
      details - the new details
    • getSeverity

      public List<Severity> getSeverity()
      Gets the severity.
      Returns:
      the severity
    • setSeverity

      public void setSeverity(List<Severity> severity)
      Sets the severity.
      Parameters:
      severity - the new severity
    • getAffected

      public List<Affected> getAffected()
      Gets the affected.
      Returns:
      the affected
    • setAffected

      public void setAffected(List<Affected> affected)
      Sets the affected.
      Parameters:
      affected - the new affected
    • getReferences

      public List<Reference> getReferences()
      Gets the references.
      Returns:
      the references
    • setReferences

      public void setReferences(List<Reference> references)
      Sets the references.
      Parameters:
      references - the new references
    • getCredits

      public List<Credit> getCredits()
      Gets the credits.
      Returns:
      the credits
    • setCredits

      public void setCredits(List<Credit> credits)
      Sets the credits.
      Parameters:
      credits - the new credits
    • databaseSpecific

      public DatabaseSpecific databaseSpecific()
      Database specific.
      Returns:
      the database specific
    • setDatabaseSpecific

      public void setDatabaseSpecific(DatabaseSpecific databaseSpecific)
      Sets the database specific.
      Parameters:
      databaseSpecific - the new database specific
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object