Bioidentity Integration in IOS
#
Trust BioIdentityTrustBioidentity is an SDK responsible for providing identity validation through a photograph of a person's fingerprint using the camera of a mobile device
#
Table of contents#
ImplementationEasiest way to install TrustBioidentity is by using Cocoapods within just a few steps:
- Initialize cocoapods in your project (if it's not already done):
this would generate a Podfile and Pods folder.
- Complete Podfile according to your needs:
- Finally install previously specified dependencies using:
#
Initialize#
BuilderName | Description | Default Value | Optional |
---|---|---|---|
nin | DNI of the user | - | No |
country | Specifies the country | CHL | No |
index | - | - | - |
strategyType | Specifies the finger | FINGER | No |
companyId | Specifies the id of the company | - | No |
provider | Specifies the provider company | TRUST | No |
clientId | Specifies the client Id | - | No |
clientSecret | Specifies the client secret | - | No |
transactionId | Specifies the transaction Id | null | Yes |
#
Example Builder#
Usage#
TrustBioIdentity methods#
Request validationThis methods allows client application to ask its user for a fingerprint validation by making a picture of its finger.
#
Request enrollThis methods allows client application to ask its user for a fingerprint enrollment by making a picture of its finger.
#
ErrorsTrustError definition:
- code: Code of error check specification
- localizedDescription: Error description as String
#
CodesPossible errors that can be found when integrating the SDK
Code | Value |
---|---|
0 | Unknown error |
400 | Bad request |
401 | The request was unauthorized |
403 | The request was forbidden |
404 | The requested could not be found |
405 | Method not allowed |
500 | Internal server error |
501 | Not implemented |
502 | Bad gateway |
503 | Service unavailable |
2000 | Error code bioidentity response |
2003 | Unsupported code bioidentity response |
9000 | Server error |