java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CpeMatch
All Implemented Interfaces:
Serializable

@NullMarked public class CpeMatch extends Object implements Serializable
CPE match string or range
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • vulnerable

      private Boolean vulnerable
      (Required)
    • criteria

      private String criteria
      (Required)
    • matchCriteriaId

      private String matchCriteriaId
      (Required)
    • versionStartExcluding

      private @Nullable String versionStartExcluding
    • versionStartIncluding

      private @Nullable String versionStartIncluding
    • versionEndExcluding

      private @Nullable String versionEndExcluding
    • versionEndIncluding

      private @Nullable String versionEndIncluding
  • Constructor Details

    • CpeMatch

      public CpeMatch(Boolean vulnerable, String criteria, String matchCriteriaId)
      Constructor taking only the required set of JSON properties as the minimal constructor for a CpeMatch.
      Parameters:
      vulnerable - The vulnerable for the CpeMatch (required JSON property)
      criteria - The criteria for the CpeMatch (required JSON property)
      matchCriteriaId - The matchCriteriaId for the CpeMatch (required JSON property)
    • CpeMatch

      public CpeMatch(Boolean vulnerable, String criteria, String matchCriteriaId, @Nullable String versionStartExcluding, @Nullable String versionStartIncluding, @Nullable String versionEndExcluding, @Nullable String versionEndIncluding)
      Full constructor for CPE match.
      Parameters:
      vulnerable - whether the match is for a vulnerable configuration
      criteria - the CPE 2.3 match string
      matchCriteriaId - the match criteria identifier
      versionStartExcluding - starting version excluded from the range
      versionStartIncluding - starting version included in the range
      versionEndExcluding - ending version excluded from the range
      versionEndIncluding - ending version included in the range
  • Method Details

    • getVulnerable

      public Boolean getVulnerable()
      (Required)
      Returns:
      vulnerable
    • getCriteria

      public String getCriteria()
      (Required)
      Returns:
      criteria
    • getMatchCriteriaId

      public String getMatchCriteriaId()
      (Required)
      Returns:
      matchCriteriaId
    • getVersionStartExcluding

      public @Nullable String getVersionStartExcluding()
      Returns:
      versionStartExcluding
    • getVersionStartIncluding

      public @Nullable String getVersionStartIncluding()
      Returns:
      versionStartIncluding
    • getVersionEndExcluding

      public @Nullable String getVersionEndExcluding()
      Returns:
      versionStartIncluding
    • getVersionEndIncluding

      public @Nullable String getVersionEndIncluding()
      Returns:
      versionEndIncluding
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object