Google.Play.Integrity.IntegrityTokenRequest

Request for IntegrityManager.RequestIntegrityToken.

Summary

Constructors and Destructors

IntegrityTokenRequest(string nonce, long? cloudProjectNumber)
Constructor.

Properties

CloudProjectNumber
long
A cloud project number to link to the integrity token.
Nonce
string
A nonce to bind the integrity token to.

Properties

CloudProjectNumber

longCloudProjectNumber

A cloud project number to link to the integrity token.

This field is required for apps exclusively distributed outside of Google Play and SDKs. For apps distributed on Google Play, the cloud project number is configured in the Play Console and need not be set on the request.

Cloud project number can be found in Project info in your Google Cloud Console for the cloud project where Play Integrity API is enabled.

Calls to decrypt the token on Google's server must be authenticated using the cloud account that was linked to the token in this request.

Nonce

stringNonce

A nonce to bind the integrity token to.

It must be base64 encoded in web-safe no-wrap form.

See https://developer.android.com/google/play/integrity/verdict#nonce for details about the nonce requirements and recommendations.

Public functions

IntegrityTokenRequest

IntegrityTokenRequest(
stringnonce,
long?cloudProjectNumber
)

Constructor.

Details
Parameters
nonce
The nonce encoded as a Base64 web-safe no-wrap string.
cloudProjectNumber
An optional cloud project number to link to the integrity token.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2023年05月02日 UTC.