Google.Play.Integrity.IntegrityManager

Manages requests for integrity information.

Summary

Constructors and Destructors

IntegrityManager()
Constructor.

Public functions

RequestIntegrityToken(IntegrityTokenRequest integrityTokenRequest)
Starts a PlayAsyncOperation to generate a token for integrity-related enquiries, and provides the token as it's result.

Public functions

IntegrityManager

 IntegrityManager()

Constructor.

RequestIntegrityToken

PlayAsyncOperation< IntegrityTokenResponse, IntegrityErrorCode > RequestIntegrityToken(
  IntegrityTokenRequest integrityTokenRequest
)

Starts a PlayAsyncOperation to generate a token for integrity-related enquiries, and provides the token as it's 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/verdict#token-format.

Details
Returns
A PlayAsyncOperation{IntegrityTokenResponse, IntegrityErrorCode} that returns IntegrityTokenResponse on successful callback or IntegrityErrorCode on failure callback.