AppAttestationClient
App attestation features supporting the Salesforce App Attestation External Client App (ECA) Plugin, the Salesforce Challenge API, Google Play Integrity API and integration of app attestation with Salesforce Authentication.
This method is not intended for public use outside of Salesforce Mobile SDK.
TODO: Make this class internal once Java support is removed. ECJ20260421
Parameters
The device id, usually provided by the Salesforce SDK Manager
The Google Cloud Project ID used with Google Play Integrity API
The Google Play App Integrity API Integrity Manager. This parameter is intended for testing purposes only. Defaults to a new instance
Provides the Salesforce External Client App (ECA) remote access consumer key, usually sourced from the boot config
The REST client, usually provided by the Salesforce SDK Manager's unauthenticated REST client
Constructors
Functions
Creates a Salesforce App Attestation External Client App (ECA) Plugin "attestation". First a Salesforce Mobile App Attestation "Challenge" is requested for the device id. Then, a Google Play Integrity API Token is fetched using the "Challenge" as the Request Hash. The resulting token is encoded into a value usable as the "attestation" parameter in the Salesforce OAuth authorization request.
A blocking Java-callable wrapper for createAppAttestation
Fetches a new "Challenge" from the Salesforce App Attestation External Client App (ECA) Plug-In.