@AnyThread public static class ContentBlocking.SafeBrowsingProvider.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ContentBlocking.SafeBrowsingProvider.Builder |
advisoryName(String advisoryName)
Set the advisory name for this provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
advisoryUrl(String advisoryUrl)
Set the url that will be used to give a general advisory about this
SafeBrowsing provider.
|
ContentBlocking.SafeBrowsingProvider |
build()
Build the
ContentBlocking.SafeBrowsingProvider based on this ContentBlocking.Settings.Builder instance. |
ContentBlocking.SafeBrowsingProvider.Builder |
dataSharingEnabled(boolean dataSharingEnabled)
Set whether to share threat data with the provider, off by default.
|
ContentBlocking.SafeBrowsingProvider.Builder |
dataSharingUrl(String dataSharingUrl)
Set url to share threat data to the provider, if enabled by
dataSharingEnabled(boolean) . |
ContentBlocking.SafeBrowsingProvider.Builder |
getHashUrl(String getHashUrl)
Sets the url that will be used to get the full hashes that match a partial hash.
|
ContentBlocking.SafeBrowsingProvider.Builder |
lists(String... lists)
Sets the lists provided by this provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
reportMalwareMistakeUrl(String reportMalwareMistakeUrl)
Set the url that will be used to report a url mistakenly reported as Malware
to the SafeBrowsing provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
reportPhishingMistakeUrl(String reportPhishingMistakeUrl)
Set the url that will be used to report a url mistakenly reported as Phishing
to the SafeBrowsing provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
reportUrl(String reportUrl)
Set the url that will be used to report a url to the SafeBrowsing provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
updateUrl(String updateUrl)
Sets the url that will be used to update the threat list for this provider.
|
ContentBlocking.SafeBrowsingProvider.Builder |
version(String version)
Sets the SafeBrowsing protocol session for this provider.
|
@NonNull public ContentBlocking.SafeBrowsingProvider.Builder version(@NonNull String version)
version
- the version strong, e.g. "2.2" or "4".ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder lists(@NonNull String... lists)
lists
- one or more lists for this provider, e.g. "goog-malware-proto",
"goog-unwanted-proto"ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder updateUrl(@NonNull String updateUrl)
updateUrl
- the update url endpoint for this providerContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder getHashUrl(@NonNull String getHashUrl)
getHashUrl
- the gethash url endpoint for this providerContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder reportUrl(@NonNull String reportUrl)
reportUrl
- the url endpoint to report a url to this provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder reportPhishingMistakeUrl(@NonNull String reportPhishingMistakeUrl)
reportPhishingMistakeUrl
- the url endpoint to report a url to this provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder reportMalwareMistakeUrl(@NonNull String reportMalwareMistakeUrl)
reportMalwareMistakeUrl
- the url endpoint to report a url to this provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder advisoryUrl(@NonNull String advisoryUrl)
advisoryUrl
- the adivisory page url for this provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder advisoryName(@NonNull String advisoryName)
advisoryName
- the adivisory name for this provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder dataSharingUrl(@NonNull String dataSharingUrl)
dataSharingEnabled(boolean)
.dataSharingUrl
- the url endpointContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider.Builder dataSharingEnabled(boolean dataSharingEnabled)
dataSharingEnabled
- true
if the browser should share threat
data with the provider.ContentBlocking.Settings.Builder
instance.@NonNull public ContentBlocking.SafeBrowsingProvider build()
ContentBlocking.SafeBrowsingProvider
based on this ContentBlocking.Settings.Builder
instance.ContentBlocking.SafeBrowsingProvider
instance.