how to integrate aadhaar verification API to java(spring mvc) web application from uidai site

7.3k views Asked by At

I'm doing a spring mvc web application, In that i want to integrate the aadhaar verication as a part in registration process of the web app. i've searched for so many solutions on the web for this, but I couldn't find any solution there. So,Any one? Pls.

2

There are 2 answers

3
Sandeep Singh On BEST ANSWER

You can not directly integrate with UIDAI and use their Aadhaar APIs.

To use Aadhaar APIs in your project you need to first get register with UIDAI to get the license for the same.

First, you will develop your application in their test environment.

Then there will be pre-production testing with UIDAI. Only after the successful testing, you can move to production.

More details at UIDAI.

2
NowRam On

You can integrate the Aadhar card module in your application using Offline E-kyc feature provided by UIDAI.

Steps

  1. First you need to download the XML file from Aadhar website by entering the aadhar card number and captcha followed by an OTP which will be sent on the registered mobile number. You also need to set up a passcode to secure the ZIP folder containing the XML file.

  2. Next you need to write a business logic to parse the data from the XML after opening the XML file. You can also validate the file is you want to check for data tampering using the certificate provided and available on Aadhar website.

I will add the link to the github repository containing the sample code for parsing and validating the digital signature in Java.