java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.Identifier
All Implemented Interfaces:
Serializable

public class Identifier extends Object implements Serializable
A GitHub Security Advisory Identifier.
 type SecurityAdvisoryIdentifier
 
See Also:
  • Field Details

    • serialVersionUID

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

      private String type
      The type of identifier.
    • value

      private String value
      The identifier value.
  • Constructor Details

    • Identifier

      public Identifier()
  • Method Details

    • getType

      public String getType()
      The identifier type, e.g. GHSA, CVE.
      Returns:
      the identifier type.
    • getValue

      public String getValue()
      The identifier.
      Returns:
      the identifier.
    • 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