ChipAccessDenied

data class ChipAccessDenied(val protocol: ChipAccessProtocol, val reason: ChipAccessDenied.Reason, val statusWord: Int? = null) : ChipError

Protocol error: the chip did not grant access, or did not let the reader read a file.

The most common cause is an access key that does not match the one the chip was set up with: MRZ values typed or read with a mistake, or the wrong card access number. A chip that cannot be read is a fact about the read, not about the document.

Experimental: see ExperimentalTesseraChipApi.

Since

1.0.0

Constructors

Link copied to clipboard
constructor(protocol: ChipAccessProtocol, reason: ChipAccessDenied.Reason, statusWord: Int? = null)

Types

Link copied to clipboard

Why access was not granted.

Properties

Link copied to clipboard
open override val code: String

A stable name of this error: see ChipError.code.

Link copied to clipboard
open override val description: String

English text for logs: the protocol, the reason and the status word, when known.

Link copied to clipboard

The access protocol that was running, or ChipAccessProtocol.NONE when none was.

Link copied to clipboard

Why access was not granted.

Link copied to clipboard
open override val statusWord: Int?

The status word the chip answered with, when there is one (for example 0x6300 or 0x6982): the fact the reason is based on.

Functions

Link copied to clipboard
open override fun toString(): String

ChipAccessDenied: followed by description.