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

public class Reference extends Object implements Serializable
Represents a reference to external information about a CVE.
See Also:
  • Field Details

    • serialVersionUID

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

      private String url
      (Required)
    • source

      private @Nullable String source
    • tags

      private @Nullable List<String> tags
  • Constructor Details

    • Reference

      public Reference(String url)
      Constructs a new Reference with the required URL.
      Parameters:
      url - the reference URL
    • Reference

      public Reference(String url, @Nullable String source, @Nullable List<String> tags)
      Constructs a new Reference with all properties.
      Parameters:
      url - the reference URL
      source - the source of the reference
      tags - additional tags describing the reference
  • Method Details

    • getUrl

      public String getUrl()
      (Required)
      Returns:
      url
    • getSource

      public @Nullable String getSource()
      Returns:
      source
    • getTags

      public @Nullable List<String> getTags()
      Returns:
      tags
    • 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