Library that provides a client identity to Ver-ID SDK 1.19.0 and newer
-
Ensure
mavenCentral()is added in your project's repositories. -
Add the following entry in your module's dependencies:
implementation 'com.appliedrec.verid:identity:[1.1.1,2.0.0[' -
Sync your Android Studio project.
- Register your app. You will need your app's bundle identifier.
- Registering your app will generate an evaluation licence for your app. The licence is valid for 30 days. If you need a production licence please contact Applied Recognition.
- When you finish the registration you'll receive a file called Ver-ID identity.p12 and a password.
-
Copy the Ver-ID identity.p12 file in your app's assets.
-
Place your password in your app's AndroidManifest.xml:
<manifest> <application> <meta-data android:name="com.appliedrec.verid.password" android:value="your password goes here" /> </application> </manifest>
-
Create an instance of VerIDIdentity:
try { Context context; // Your application context VerIDIdentity identity = new VerIDIdentity(context); } catch(Exception e) { }
-
Copy the Ver-ID identity.p12 file in your app's assets.
-
Create an instance of VerIDIdentity:
try { Context context; // Your application context VerIDIdentity identity = new VerIDIdentity(context, "your password goes here"); } catch(Exception e) { }
-
Upload the Ver-ID identity.p12 online.
-
Create an instance of VerIDIdentity referencing the URL of the Ver-ID identity.p12 file:
try { URL url = new URL("https://ver-id.s3.us-east-1.amazonaws.com/ios/com.appliedrec.verid.licenceclient/test_assets/Ver-ID%20identity.p12") VerIDIdentity identity = new VerIDIdentity(url, "your password goes here"); } catch(Exception e) { }
-
Store the Ver-ID identity.p12 in your app.
-
Create an instance of VerIDIdentity referencing the Ver-ID identity.p12 file:
try { File file = new File("path/to/Ver-ID identity.p12"); VerIDIdentity identity = new VerIDIdentity(file, "your password goes here"); } catch(Exception e) { }
Create an instance of VerIDIdentity and pass it to VerIDFactory:
try {
Context context; // Your application context
// See above
VerIDIdentity identity = new VerIDIdentity(context);
// Construct VerIDFactory with your identity
VerIDFactory veridFactory = new VerIDFactory(identity);
// ... use veridFactory to create an instance of VerID
} catch(Exception e) {
}