Package google.registry.beam.spec11
Class ThreatMatch
java.lang.Object
google.registry.beam.spec11.ThreatMatch
- All Implemented Interfaces:
Serializable
A POJO representing a threat match response from the
SafeBrowsing API
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
Returns the fully qualified domain name [SLD].[TLD] of the matched threat.static ThreatMatch
fromJSON
(org.json.JSONObject threatMatch) Parses aJSONObject
and returns an equivalentThreatMatch
.abstract String
Returns what kind of threat it is (malware, phishing etc.)
-
Constructor Details
-
ThreatMatch
public ThreatMatch()
-
-
Method Details
-
threatType
Returns what kind of threat it is (malware, phishing etc.) -
domainName
Returns the fully qualified domain name [SLD].[TLD] of the matched threat. -
fromJSON
Parses aJSONObject
and returns an equivalentThreatMatch
.- Throws:
org.json.JSONException
-