com.google.android.gms.safetynet.SafetyNetApi |
The main entry point for interacting with SafetyNet.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SafetyNetApi.AttestationResponse | Response from attest(byte[], String) that contains a Compatibility Test Suite
attestation result. |
||||||||||
SafetyNetApi.HarmfulAppsResponse | A Response returned from listHarmfulApps() . |
||||||||||
SafetyNetApi.RecaptchaTokenResponse | Response from verifyWithRecaptcha(String) . |
||||||||||
SafetyNetApi.RecaptchaTokenResult |
This interface is deprecated.
use SafetyNetApi.RecaptchaTokenResponse returned from verifyWithRecaptcha(String) .
|
||||||||||
SafetyNetApi.SafeBrowsingResponse | Response for lookupUri(String, String, int...) . |
||||||||||
SafetyNetApi.VerifyAppsUserResponse | A Response to get user decisions for the Verify Apps API. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
use
verifyWithRecaptcha(String) .
|
This method is deprecated.
use verifyWithRecaptcha(String)
.
Provides user attestation with reCAPTCHA.
If reCAPTCHA is confident that this is a real user on a real device it will return a token with no challenge. Otherwise it will provide a visual/audio challenge to attest the humanness of the user before returning a token.
When you make a request with this API, you must provide your client GoogleApiClient
and site public key as parameters, and after the request completes, you can get the SafetyNetApi.RecaptchaTokenResult
from the response.
Parameters | |
---|---|
client |
GoogleApiClient : The GoogleApiClient to service the call. The client must be connected
using connect() before invoking this method. |
siteKey |
String : A site public key registered for this app at https://g.co/recaptcha/androidsignup |
Returns | |
---|---|
PendingResult<SafetyNetApi.RecaptchaTokenResult> |