public class VulnerabilityResource extends AbstractRemoteResource
| Constructor and Description |
|---|
VulnerabilityResource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
affects(String name,
String range)
Return true if this vulnerability affects anything within the provided range
|
boolean |
appliesTo(String version)
Return true if this vulnerability applies to the specified version.
|
String |
getDescription()
Get a reasonable description of the vulnerability
|
protected String |
getResourceType()
Get the OSS Index resource type.
|
String |
getTitle()
Get a reasonable title of the vulnerability
|
URI |
getUri()
Get the unique URI for a vulnerability
|
String[] |
getVersions()
Get the product version ranges affected by this vulnerability.
|
boolean |
isCve()
Return true if this vulnerability represents a known CVE.
|
exists, getIdprotected String getResourceType()
AbstractRemoteResourcegetResourceType in class AbstractRemoteResourcepublic boolean isCve()
public URI getUri()
public String[] getVersions()
public String getDescription()
public String getTitle()
public boolean affects(String name, String range)
name - product/package namerange - range of versions that the passed in product/package representspublic boolean appliesTo(String version)
version - Version we are checkingCopyright © 2015. All rights reserved.