SafeBrowsingThreat
Stay organized with collections
Save and categorize content based on your preferences.
Inherited Method Summary
From class java.lang.Object
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eSafeBrowsingThreat\u003c/code\u003e identifies potentially harmful or socially engineered URLs.\u003c/p\u003e\n"],["\u003cp\u003eIt uses threat types to categorize the URLs, with \u003ccode\u003eTYPE_POTENTIALLY_HARMFUL_APPLICATION\u003c/code\u003e and \u003ccode\u003eTYPE_SOCIAL_ENGINEERING\u003c/code\u003e being the primary ones.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetThreatType()\u003c/code\u003e method retrieves the specific threat type associated with the identified URL.\u003c/p\u003e\n"],["\u003cp\u003eIt is used in conjunction with SafetyNetClient's \u003ccode\u003elookupUri()\u003c/code\u003e method for detecting such threats in input URLs.\u003c/p\u003e\n"]]],[],null,["# SafeBrowsingThreat\n\npublic class **SafeBrowsingThreat** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nA threat of interest used as input to [lookupUri(String, String, int...)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#lookupUri(java.lang.String, java.lang.String, int...)) and returned as output if these threats are\ndetected for the input URI to [lookupUri(String, String, int...)](/android/reference/com/google/android/gms/safetynet/SafetyNetClient#lookupUri(java.lang.String, java.lang.String, int...)). \n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| int | [TYPE_POTENTIALLY_HARMFUL_APPLICATION](/android/reference/com/google/android/gms/safetynet/SafeBrowsingThreat#TYPE_POTENTIALLY_HARMFUL_APPLICATION) | This threat type will match URLs of pages that are flagged as containing potentially harmful applications. |\n| int | [TYPE_SOCIAL_ENGINEERING](/android/reference/com/google/android/gms/safetynet/SafeBrowsingThreat#TYPE_SOCIAL_ENGINEERING) | This threat type will match URLs of pages that are flagged as containing social engineering threats. |\n\n### Public Method Summary\n\n|-----|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getThreatType](/android/reference/com/google/android/gms/safetynet/SafeBrowsingThreat#getThreatType())() Gets the threat type for this threat. |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants\n---------\n\n#### public static final int\n**TYPE_POTENTIALLY_HARMFUL_APPLICATION**\n\nThis threat type will match URLs of pages that are flagged as containing potentially\nharmful applications. \nConstant Value: 4 \n\n#### public static final int\n**TYPE_SOCIAL_ENGINEERING**\n\nThis threat type will match URLs of pages that are flagged as containing social\nengineering threats. \nConstant Value: 5\n\nPublic Methods\n--------------\n\n#### public int **getThreatType** ()\n\nGets the threat type for this threat."]]