Gets a certificate from the Afaria server.
To retrieve an x509 certificate from Afaria, you must get a CertificateStore and then call getSignedCertificateFromAfaria. If Afaria is installed and configured on the device, this gets the Afaria seeding file from the Afaria server. If the seeding file is retrieved from the Afaria server, the user is prompted to update user specific information in the Settings screen. Supported Platforms: iOS, Android & BlackBerry
getSignedCertificateFromAfaria( commonName, challengeCode )
Name | Type | Description |
commonName | String | Common name used to generate the certificate by Afaria |
challengeCode | String | Challenge code for the user so that CA can verify and sign it |
JSON object with CertBlob in Base64 encoded format and other information about certificate
// The following script gets a signed certificate from the Afaria server. var certStore = CertificateStore.getDefault(); cert = certStore.getSignedCertificateFromAfaria("Your_CN", "CA_challenge_code");