有人可以通过示例代码帮助澄清Aadhaar Biometric身份验证API调用吗?

时间:2015-06-09 19:42:50

标签: android http curl aadhaar

我是Aadhaar生物识别API的新手。

我收到以下错误消息:

Proto Error code 810. (Missing biometrics in Authentication.)

使用以下密钥和Morpho 1300指纹识别器:

  

的字符串生物=" Rk1SACAyMAAAAADkAAgAyQFnAMUAxQEAAAARIQBqAGsgPgCIAG0fRwC2AG2dSQBVAIUjPABuALShMgCxAL0jMAByAM6lPgCmAN2kQQBwAN8qNAB1AN8mPADJAOcgOQA8AOorNABoAOomOQC + AO2fMQDFAPqlSgCvAP8lRQB8AQuhPABwAQ4fMgB7ASqcRADAAS4iNwCkATMeMwCFATYeNwBLATYwMQBWATcoMQCkATecMQBEATwyMgBJAUciQQCkAU8cNQB9AVQWNgCEAVUVRACoAVgYOgBBAV69NgCsAWeYNwAA&#34 ;;

以下是身份验证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调用吗?

0 个答案:

没有答案