Stay organized with collections Save and categorize content based on your preferences.

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

long CloudProjectNumber

A cloud project number to link to the integrity token.

This is an optional field and is meant to be used only for apps not available on GooglePlay or by SDKs that include the PlayIntegrity API.

Cloud project number is an automatically generated unique identifier for your Google Cloud project. It can be found in Project info in your Google Cloud Console for the cloud project where PlayIntegrity API is enabled.

Nonce

string Nonce

A nonce to bind the integrity token to.

A nonce is a unique token which is ideally generated on the application backend and bound to the context (for example, hash of the user id and timestamp). The provided nonce will be a part of the signed response token, which will allow you to compare it to the original one and hence prevent replay attacks.

Nonces should always be generated in a secure server environment. Do not generate a nonce from within the client app.

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

Public functions

IntegrityTokenRequest

 IntegrityTokenRequest(
  string nonce,
  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.