Acpl Fm220 RD Document (For Developer)
Acpl Fm220 RD Document (For Developer)
Acpl Fm220 RD Document (For Developer)
Contents
Page 1
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
• Note : -
Device connection and registration process are explain in Android RD Service User Manual for
that please check this link :-
https://www.acpl.in.net/assets/pdf/ACPL_FM220_RD_Document_ANDROID.pdf
<!--main capture call which takes PidOptions XML data as input and returns PidData XML as output -->
String getDeviceInfo (); <!-- utility method to obtain DeviceInfo XML from the RD Service-->
<PidOptions ver="">
<!--PidOptions: ver: Version of the PidOtopns spec. currently, it is “1.0”. This is necessary to allow
applications to gracefully upgrade even when RD service may be been upgraded. RD Service
must support current version and one previous version to allow apps to upgrade at different
points in time-->
<!-- Element allows demographic data to be passed to form PID block as per authentication
specification-->
<CustOpts>
<!-- no application should hard code these and should be configured on app or AUA servers. These
parameters can be used for any custom application authentication or for other configuration
parameters. Device providers can differentiate their service in the market by enabling advanced
algorithms that applications can take advantage of. -->
<Param name="" value="" />
</CustOpts>
<!-- Allows vendor specific options to be passed. Param element may repeat-->
</PidOptions>
Page 2
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
/* Opts:
<PidData>
<Resp errCode="" errInfo="" fCount="" fType="" iCount="" iType="" pCount="" pType=""
nmPoints="" qScore=""/>
<DeviceInfo />
<Skey ci="">encrypted and encoded session key</Skey>
<Hmac>SHA-256 Hash of Pid block, encrypted and then encoded</Hmac>
<Data type="X|P"> base-64 encoded encrypted pid block </pid> </PidData>
/* Resp:
Int errCode (mandatory) 0 if no error, else standard error codes
String errInfo (optional) additional info message in case of error/warning
Int fCount (mandatory for FP) number of finger records actually captured
Int fType (mandatory for FP) actual format type – 0 (FMR) or 1 (FIR)
Int iCount (mandatory for Iris) number of iris records actually captured
Int iType (mandatory for Iris) actual Iris format (0 for IIR)
Int pCount (mandatory for Photo) number of face photo records actually captured. Currently face
matching is not supported
Int pType (mandatory for Photo) face format. Currently face matching is not supported.
Int nmPoints (mandatory for FMR capture) Number of minutiae points when FMR is captured.
Applications may use this for accepting or retrying the capture. If multiple fingers are captured,
send comma delimited numbers.
Int qScore (optional) if quality check is done, send a normalized score that is between 0 and 100.
Device providers may allow configuration within RD service to use specific quality check
Page 3
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
3. Intent Create:
btnAuthenticate.setEnabled(false);
btnCapture.setEnabled(false);
}
4
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
btnAuthenticate.setEnabled(false);
btnCapture.setEnabled(false);
}
4. Intent Call:
The integer argument is a “request code” that identifies your request. When you receive
the result Intent, the call back provides the same request code so that application can
properly identify the result and determine how to handle it. (For result of this call,
refer “Activity Result” code.)
int resultCode = 1;
startActivityForResult(intentInfo, resultCode);
pidDataXML = "";
5
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
5. Activity Result:
Activity Result is depends as per value passed in intent call. You can change values as per
your requirement.
<!-- The System calls activity’s onActivityResult() method when user will be done with subsequent
activity and returns. The onActivityResult() method includes three arguments:
1. The request code passed to startActivityForResult().
2. A result code specified by the second activity. This is RESULT_OK if the operation was
successful.
3. An Intent that carries the result data. -->
//pidDataXML
return;
}
DocumentBuilderFactory db = DocumentBuilderFactory.newInstance();
6
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
//"Scan success"
} else {
//"Scan Failure"
}
}
} else if (requestCode == 3) {
}
}
7
ACCESS COMPUTECH PVT LTD. HELPLINE NUMBER: 7874078565/ 8141958565
<PidData>
<Resp errCode="" errInfo="" fCount="" fType="" iCount="" iType="" pCount="" pType=""
nmPoints="" qScore=""/>
<DeviceInfo />
<Skey ci="">encrypted and encoded session key</Skey>
<Hmac>SHA-256 Hash of Pid block, encrypted and then encoded</Hmac>
<Data type="X|P"> base-64 encoded encrypted pid block </pid>
</PidData>
• Data, Skey and HMac elements from Piddata to Auth are to be used as it is. Deviceinfo in
Piddata will provide other elements required for Meta. UDC is as per your choice. It
should be present but it is not checked.
• Auth XML is to be signed using UIDAI private key as it was signed in version 1.6.