Returns the certificate as a base64 encoded string.
- (NSString *) getSignedCertificateFromAfariaForURL: (NSSTring *) url withUsername: (NSString *) username withPassword: (NSString *) password
Returns the certificate as a base64 encoded string.
if ([[url absoluteString] length] != 0 ) {
@try {
LiteSUPCertificateStore* store = [LiteSUPCertificateStore getInstance];
NSString* certBase64 = [store getSignedCertificateFromAfariaForURL:[url absoluteString] withUsername:@"Username" withPassword:@"Password"];
NSLog(@"%@", certBase64);
}
@catch (NSException *exception) {NSLog(@"%@", [exception reason]);
}
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotationmethod of your application delegate. The API is called after the Afaria client generates a URL and forwards it to the application via the delegate. This is required only if the above call is the first call to Afaria in the application.