DCAppAttestService
A service that you use to validate the instance of your app running on a device.
Declaration
class DCAppAttestServiceMentioned in
Overview
Use the shared instance of the DCAppAttestService class to assert the legitimacy of a particular instance of your app to your server. After ensuring service availability by reading the isSupported property, you use the service to:
Create a cryptographic key in the Secure Enclave by calling the generateKey(completionHandler:) method.
Ask Apple to certify the key by calling the attestKey(_:clientDataHash:completionHandler:) method. - Prepare an assertion of your app’s integrity to accompany any or all server requests using the generateAssertion(_:clientDataHash:completionHandler:) method.
For more information about how to support App Attest in your app, see Establishing your app’s integrity. For information about the complementary procedures you implement on your server, see Validating apps that connect to your server.