Package org.spdx.spdx_to_osv.osvmodel
Class OsvVulnerabilityRequest
java.lang.Object
org.spdx.spdx_to_osv.osvmodel.OsvVulnerabilityRequest
public class OsvVulnerabilityRequest extends Object
OSV package and version or commit information
Matches the format for the Query Vulnerability request as specified at https://osv.dev/docs/#operation/OSV_QueryAffected
- Author:
- Gary O'Neall
-
Constructor Summary
Constructors Constructor Description OsvVulnerabilityRequest(String commit)OsvVulnerabilityRequest(OsvPackage osvPackage, String version) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)StringgetCommit()OsvPackagegetPackage()StringgetVersion()inthashCode()voidsetCommit(String commit)voidsetPackage(OsvPackage osvPackage)voidsetVersion(String version)
-
Constructor Details
-
OsvVulnerabilityRequest
- Parameters:
name- package nameversion- package version
-
OsvVulnerabilityRequest
-
-
Method Details
-
getPackage
- Returns:
- the osvPackage
-
setPackage
- Parameters:
osvPackage- the osvPackage to set
-
getVersion
- Returns:
- the version
-
setVersion
- Parameters:
version- the version to set
-
getCommit
- Returns:
- the commit
-
setCommit
- Parameters:
commit- the commit to set
-
hashCode
public int hashCode() -
equals
-