Class CpeMatch
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CpeMatch
- All Implemented Interfaces:
Serializable
CPE match string or range
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor taking only the required set of JSON properties as the minimal constructor for a CpeMatch.CpeMatch(Boolean vulnerable, String criteria, String matchCriteriaId, @Nullable String versionStartExcluding, @Nullable String versionStartIncluding, @Nullable String versionEndExcluding, @Nullable String versionEndIncluding) Full constructor for CPE match. -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
vulnerable
(Required) -
criteria
(Required) -
matchCriteriaId
(Required) -
versionStartExcluding
-
versionStartIncluding
-
versionEndExcluding
-
versionEndIncluding
-
-
Constructor Details
-
CpeMatch
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 configurationcriteria- the CPE 2.3 match stringmatchCriteriaId- the match criteria identifierversionStartExcluding- starting version excluded from the rangeversionStartIncluding- starting version included in the rangeversionEndExcluding- ending version excluded from the rangeversionEndIncluding- ending version included in the range
-
-
Method Details
-
getVulnerable
(Required)- Returns:
- vulnerable
-
getCriteria
(Required)- Returns:
- criteria
-
getMatchCriteriaId
(Required)- Returns:
- matchCriteriaId
-
getVersionStartExcluding
- Returns:
- versionStartExcluding
-
getVersionStartIncluding
- Returns:
- versionStartIncluding
-
getVersionEndExcluding
- Returns:
- versionStartIncluding
-
getVersionEndIncluding
- Returns:
- versionEndIncluding
-
toString
-
equals
-
hashCode
public int hashCode()
-