NFC Travel Document Reader component.


Link copied to clipboard
abstract fun read(tag: Tag, nfcKey: NfcKey): TravelDocument
abstract fun read(tag: Tag, nfcKey: NfcKey, activeAuthenticationChallenge: ByteArray?): TravelDocument

Read travel document. First it executes appropriate access control method (BAC/PACE). Then it authenticates data and chip, and finally it returns travel document created from read Data Groups. This operation should be called on a background thread.