LegacySudoSiteReputationClient

Interface encapsulating a library for interacting with the Sudo Site Reputation service.

Since

2021-01-04

Samples

com.sudoplatform.sudositereputation.samples.Samples.buildClient

Types

Link copied to clipboard
class Builder

Builder used to construct the LegacySudoSiteReputationClient.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val ENTITLEMENT_NAME: String
Link copied to clipboard

The date/time of when the last call to update was made, null if it has never been called or if the cached rulesets have been deleted.

Functions

Link copied to clipboard
abstract suspend fun clearStorage()

Delete all cached data.

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract suspend fun getSiteReputation(url: String): LegacySiteReputation

Checks the host or domain of a URL to determine if it is listed as malicious.

Link copied to clipboard
abstract suspend fun update()

Request the Rulesets are updated from the service.