Configuration

data class Configuration @JvmOverloads constructor(    val password: Password,     val authorityCertificatesFilePath: String? = null,     val activeAuthenticationChallenge: ByteArray? = null,     val sessionToken: String? = null,     isDebugInfoEnabled: Boolean = false) : Serializable

Configuration of NFC reading for NfcTravelDocumentReaderFragment.

Constructors

Link copied to clipboard
fun Configuration(    nfcKey: NfcKey,     authorityCertificatesFilePath: String? = null,     activeAuthenticationChallenge: ByteArray? = null,     isDebugInfoEnabled: Boolean = false)
Link copied to clipboard
fun Configuration(    password: Password,     authorityCertificatesFilePath: String? = null,     activeAuthenticationChallenge: ByteArray? = null,     sessionToken: String? = null,     isDebugInfoEnabled: Boolean = false)

Properties

Link copied to clipboard

Random 8 bytes. If the Active Authentication challenge is set, Active Authentication protocol will be used for the authentication of the chip (if supported by the chip). Response (signature) will be returned in the NfcTravelDocumentReaderResult data class. This response should be validated by the application server to verify the authenticity of the chip. In case when the Active Authentication protocol is not supported by the chip, the chip will be authenticated the same way as if the argument activeAuthenticationChallenge is not set. Default value is null.

Link copied to clipboard

The pathname of the file with certificates of trusted authorities. Certificates are required to successfully authenticate data in the chip. Default value is null.

Link copied to clipboard

Password for accessing the chip.

Link copied to clipboard
val sessionToken: String? = null

Session token provided by DIS (Digital Identity Service). Set the session token if the result should be posted to DIS for evaluation. Default value is null.