Google. Play. Integrity. IntegrityManagerV2
Manages requests for integrity information and dialogs.
Summary
Replaces the V1 IntegrityManager to provide enhanced error handling and remediation dialog support.
Constructors and Destructors |
|
|---|---|
IntegrityManagerV2()
|
Public functions |
|
|---|---|
RequestIntegrityToken(IntegrityTokenRequest integrityTokenRequest)
|
PlayAsyncOperation< IntegrityTokenResponse, IntegrityServiceError >
Starts a PlayAsyncOperation to generate a token for integrity-related enquiries, and provides the token as its result.
|
ShowDialog(IntegrityDialogRequest request)
|
PlayAsyncOperation< IntegrityDialogResponseCode, IntegrityServiceError >
Displays a dialog to the user.
|
Public functions
IntegrityManagerV2
IntegrityManagerV2()
RequestIntegrityToken
PlayAsyncOperation< IntegrityTokenResponse, IntegrityServiceError > RequestIntegrityToken( IntegrityTokenRequest integrityTokenRequest )
Starts a PlayAsyncOperation to generate a token for integrity-related enquiries, and provides the token as its result.
The JSON payload is signed and encrypted as a nested JSON Web Token (JWT), that is JWE of JWS.
JWE uses A256KW as a key wrapping algorithm and A256GCM as a content encryption algorithm. JWS uses ES256 as a signing algorithm.
All decryption and verification should be done within a secure server environment. Do not decrypt or verify the received token from within the client app. In particular, never expose any decryption keys to the client app.
See https://developer.android.com/google/play/integrity/classic#token-format.
| Details | |
|---|---|
| Returns |
A PlayAsyncOperation{IntegrityTokenResponse, IntegrityServiceError} that returns IntegrityTokenResponse on successful callback or IntegrityServiceError on failure callback.
|
ShowDialog
PlayAsyncOperation< IntegrityDialogResponseCode, IntegrityServiceError > ShowDialog( IntegrityDialogRequest request )
Displays a dialog to the user.
This method can only be called once per Integrity API response (Token or Error).
| Details | |||
|---|---|---|---|
| Parameters |
|
||
| Returns |
A PlayAsyncOperation{TResult,TError} that returns IntegrityDialogResponseCode on successful callback or IntegrityServiceError on failure callback.
|