SafeBrowsingThreat

  • SafeBrowsingThreat identifies potentially harmful or socially engineered URLs.

  • It uses threat types to categorize the URLs, with TYPE_POTENTIALLY_HARMFUL_APPLICATION and TYPE_SOCIAL_ENGINEERING being the primary ones.

  • The getThreatType() method retrieves the specific threat type associated with the identified URL.

  • It is used in conjunction with SafetyNetClient's lookupUri() method for detecting such threats in input URLs.

public class SafeBrowsingThreat extends Object

A threat of interest used as input to lookupUri(String, String, int...) and returned as output if these threats are detected for the input URI to lookupUri(String, String, int...).

Constant Summary

int TYPE_POTENTIALLY_HARMFUL_APPLICATION This threat type will match URLs of pages that are flagged as containing potentially harmful applications.
int TYPE_SOCIAL_ENGINEERING This threat type will match URLs of pages that are flagged as containing social engineering threats.

Public Method Summary

int
getThreatType()
Gets the threat type for this threat.

Inherited Method Summary

Constants

public static final int TYPE_POTENTIALLY_HARMFUL_APPLICATION

This threat type will match URLs of pages that are flagged as containing potentially harmful applications.

Constant Value: 4

public static final int TYPE_SOCIAL_ENGINEERING

This threat type will match URLs of pages that are flagged as containing social engineering threats.

Constant Value: 5

Public Methods

public int getThreatType ()

Gets the threat type for this threat.