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 field is required for apps exclusively distributed outside of Google Play and SDKs. For apps distributed on GooglePlay, 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 PlayIntegrity 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

string Nonce

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(
  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.