getCertifierToken
This method is used to generate a token if this application has been certified.
To certify your application, it must first be uploaded by the application certification APIs.
🔑 Minimum required license level: Advanced.
Sample usage
try {
val token = rasp.api.application.getCertifierToken()
Log.d("RASP-DEMO", "[applicationCertifier] This application have a certifier token => $applicationCertifier")
} catch (i: InvalidLicense) {
Log.d("RASP-DEMO", "[applicationCertifier] Unavailable with the 'Core' license level.")
} catch (e: Exception) {
Log.e("RASP-DEMO", "[applicationCertifier] Error: ${e.message}")
}
Content copied to clipboard
It must be run in a coroutine context such as Dispatchers.IO.
Return
String
— Application certifier token, else "400"
: Some parameters are missing ; "401"
: Incorrect or missing credentials ; "403"
: Forbidden ; "408"
: Timeout / No device connection ; "500"
: Internal server error