我是 Aadhaar 生物识别 API 的新手。
我收到以下错误消息:
Proto Error code 810. (Missing biometrics in Authentication.)
使用以下密钥和 Morpho 1300 指纹读取器:
String bio = "Rk1SACAyMAAAAADkAAgAyQFnAMUAxQEAAAARIQBqAGsgPgCIAG0fRwC2AG2dSQBVAIUjPABuALShMgCxAL0jMAByAM6lPgCmAN2kQQBwAN8qNAB1AN8mPADJAOcgOQA8AOorNABoAOomOQC+AO2fMQDFAPqlSgCvAP8lRQB8AQuhPABwAQ4fMgB7ASqcRADAAS4iNwCkATMeMwCFATYeNwBLATYwMQBWATcoMQCkATecMQBEATwyMgBJAUciQQCkAU8cNQB9AVQWNgCEAVUVRACoAVgYOgBBAV69NgCsAWeYNwAA";
以下是身份验证 API 的 XML 数据格式:
<Auth uid=”” tid=”” ac=”” sa=”” ver=”” txn=”” lk=””>
<Uses pi=”” pa=”” pfa=”” bio=”” bt=”” pin=”” otp=””/>
<Tkn type=”” value=””/>
<Meta udc=”” fdc=”” idc=”” pip=”” lot=”G|P” lov=””/>
<Skey ci=”” ki=””>encrypted and encoded session key</Skey>
<Data type=”X|P”>encrypted PID block</Data>
<Hmac>SHA-256 Hash of Pid block, encrypted and then encoded</Hmac>
<Signature>Digital signature of AUA</Signature>
</Auth>
当使用 XML 格式的 PID 块(默认)时,“Pid”元素的格式如下:
<Pid ts=”” ver=””>
<Demo lang=””>
<Pi ms=”E|P” mv=”” name=”” lname=”” lmv=”” gender=”M|F|T” dob=””
dobt=”V|D|A” age=”” phone=”” email=””/>
<Pa ms=”E” co=”” house=”” street=”” lm=”” loc=””
vtc=”” subdist=”” dist=”” state=”” pc=”” po=””/>
<Pfa ms=”E|P” mv=”” av=”” lav=”” lmv=””/>
</Demo>
<Bios>
<Bio type=”FMR|FIR|IIR” posh=””>encoded biometric</Bio>
</Bios>
<Pv otp=”” pin=””/>
</Pid>
验证请求
<Request requestId=”” version=”1.0” timeStamp=””>
<Verify referenceUrl=”” maxResults=”” targetFMR=””>
<Biometrics> <!-- Optional -->
<Biometric type=”FMR|FIR|IIR”>
Encoded (base64) biometric
</Biometric>
[...]
</Biometrics>
<Gallery>
<referenceId id=””/>
[...]
</Gallery>
</Verify>
</Request>
验证响应
<Response requestId=”” timeStamp=””>
<Return value=”” [failureReason=””]/>
<CandidateList count=”” more=””>
<Candidate referenceId=”” scaledScore=””/>
[...]
</CandidateList>
</Response>
有人可以帮助澄清 Aadhaar 生物识别身份验证 API 调用吗?