Stay organized with collections
Save and categorize content based on your preferences.
Google.Play.Integrity.IntegrityTokenRequest
Request for IntegrityManager.RequestIntegrityToken.
Summary
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
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.
|
|
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.
[null,null,["Last updated 2023-05-02 UTC."],[],[],null,["# Google.Play.Integrity.IntegrityTokenRequest Class Reference\n\nGoogle.Play.Integrity.IntegrityTokenRequest\n===========================================\n\nRequest for [IntegrityManager.RequestIntegrityToken](/reference/unity/class/Google/Play/Integrity/IntegrityManager#classGoogle_1_1Play_1_1Integrity_1_1IntegrityManager_1a1dcfd0e7f77001135c708d6420d0b98e).\n\nSummary\n-------\n\n| ### Constructors and Destructors ||\n|---|---|\n| [IntegrityTokenRequest](#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenRequest_1aa6581988855c5d50c723f92700611ebe)`(string nonce, long? cloudProjectNumber)` Constructor. ||\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| [CloudProjectNumber](#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenRequest_1ad936c14debfeafadc0118bbb3f50ea78) | `long` A cloud project number to link to the integrity token. |\n| [Nonce](#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenRequest_1a76cc4c09fe859e4ee0ae18ff212b762b) | `string` A nonce to bind the integrity token to. |\n\nProperties\n----------\n\n### CloudProjectNumber\n\n```c#\nlong CloudProjectNumber\n``` \nA cloud project number to link to the integrity token.\n\nThis field is required for [apps exclusively distributed outside of Google Play](https://developer.android.com/google/play/integrity/setup#apps-exclusively-distributed-outside-google-play) and [SDKs](https://developer.android.com/google/play/integrity/setup#sdks). For apps distributed on [Google](/reference/unity/namespace/Google#namespaceGoogle)[Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play), the cloud project number is configured in the [Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play) Console and need not be set on the request.\n\nCloud project number can be found in Project info in your [Google](/reference/unity/namespace/Google#namespaceGoogle) Cloud Console for the cloud project where [Play](/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play)[Integrity](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity) API is enabled.\n\nCalls to [decrypt the token on Google's server](https://developer.android.com/google/play/integrity/verdict#decrypt-verify-google-servers) must be authenticated using the cloud account that was linked to the token in this request. \n\n### Nonce\n\n```c#\nstring Nonce\n``` \nA nonce to bind the integrity token to.\n\nIt must be base64 encoded in web-safe no-wrap form.\n\nSee \u003chttps://developer.android.com/google/play/integrity/verdict#nonce\u003e for details about the nonce requirements and recommendations.\n\nPublic functions\n----------------\n\n### IntegrityTokenRequest\n\n```c#\n IntegrityTokenRequest(\n string nonce,\n long? cloudProjectNumber\n)\n``` \nConstructor.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 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. | |"]]