Class ThreatMatch

java.lang.Object
google.registry.beam.spec11.ThreatMatch
All Implemented Interfaces:
Serializable

public abstract class ThreatMatch extends Object implements Serializable
A POJO representing a threat match response from the SafeBrowsing API.
See Also:
  • Constructor Details

    • ThreatMatch

      public ThreatMatch()
  • Method Details

    • threatType

      public abstract String threatType()
      Returns what kind of threat it is (malware, phishing etc.)
    • domainName

      public abstract String domainName()
      Returns the fully qualified domain name [SLD].[TLD] of the matched threat.
    • fromJSON

      public static ThreatMatch fromJSON(org.json.JSONObject threatMatch) throws org.json.JSONException
      Parses a JSONObject and returns an equivalent ThreatMatch.
      Throws:
      org.json.JSONException