readAndVerify

open fun readAndVerify(isoDep: IsoDep, documentNumber: String, dateOfBirth: String, dateOfExpiry: String): EmrtdResult

Read and verify an eMRTD.

Return

EmrtdResult holding eMRTD data and check results

Parameters

isoDep

IsoDep of an ISO7816 Tag with the eMRTD applet.

documentNumber

document number from the MRZ.

dateOfBirth

date of birth from the MRZ (Format: yyMMDD)

dateOfExpiry

date of expiry from the MRZ (Format: yyMMDD)

Throws

eMRTD Session was not successful. Query getMessage for details.

Access Control failed. Ensure that the provided AccessKey values (document number, date of birth, date ofexpiry) are correct.

the connection to NFC tag was lost. Please hold thephone and the document steady and try again.


open fun readAndVerify(isoDep: IsoDep, can: String): EmrtdResult

Read and verify an eMRTD.

Return

EmrtdResult holding eMRTD data and check results

Parameters

isoDep

IsoDep of an ISO7816 Tag with the eMRTD applet.

can

CAN, a 6 digit number, printed on the front of the document.

Throws

eMRTD Session was not successful. Query getMessage for details.

Access Control failed. Ensure that the provided AccessKey values (document number, date of birth, date ofexpiry) are correct.

the connection to NFC tag was lost. Please hold thephone and the document steady and try again.