Association details
You can retrieve Application and Profile details before proceeding to the association.
caution
Not all association codes are valid, in that case, a Error with domain profileAction(code: .invalidAssociationCode) is returned. The same association method can still be valid for the association method.
Client requirements
Using link
- iOS (Swift)
- Android (Java)
let url = URL(string: "https://....")
trustfactorClient.applicationProfileForAssociation(method: .deeplink(url)) { result, correlationId in
switch result {
case .success(let response):
// response type: TFApplicationProfiles
case .failure(let error):
// handle errors
}
}
Uri uri = Uri.parse("https://....");
trustfactorClient.applicationProfileForAssociation(uri: <Uri>, new Result<TFApplicationProfiles, Error>() {
@Override
public void onSuccess(TFApplicationProfiles result, String correlationId) {
// result type: TFApplicationProfiles
}
@Override
public void onFailure(Error error, String correlationId) {
// handle errors
}
});
Using an association code
- iOS (Swift)
- Android (Java)
let code = "....."
trustfactorClient.applicationProfileForAssociation(method: .code(code)) { result, correlationId in
switch result {
case .success(let response):
// response type: TFApplicationProfiles
case .failure(let error):
// handle errors
}
}
String code = "<>";
trustfactorClient.applicationProfileForAssociation(code: <String>, new Result<TFApplicationProfiles, Error>() {
@Override
public void onSuccess(TFApplicationProfiles result, String correlationId) {
// result type: TFApplicationProfiles
}
@Override
public void onFailure(Error error, String correlationId) {
// handle errors
}
});