Initialization and Authorization
|
Important Update - Harmony App Protect End of Support
Check Point’s Harmony App Protect will be end of support soon. For more information on key actions and timelines, see Harmony App Protect End-of-Life - Check Point CheckMates. |
You must always initialize the Harmony App Protect at the application's startup and wait for authorization to complete before calling the various APIs.
The result of the authorization process is sent to the callback. On the callback, you can see if the authorization was successful. If not, you must query the event result to see what went wrong and how to fix it.
To retry authorization after failure (because of general AuthorizationFailure
or MissingPermission
s), recall the initialize
method after you resolve the issues.
Currently, no permissions are required.
The Builder method requires these parameters:
Parameter |
Type |
Required |
Description |
---|---|---|---|
context |
Context |
Yes |
Android context. |
apiKey |
String |
Yes |
API key for the Harmony App Protect provided during the registration. To find the token, go to Using SDK > Implementation Instructions > Step 4 - Initialize the SDK. |
callback |
SBMAuthorizationCallback |
No |
Callback to receive authorization result. |