ReadResult

data class ReadResult(val photo: ByteArray?, val signatureImage: ByteArray?, val identity: IdentityData?, val personalData: PersonalData?, val passiveAuth: PassiveAuthStatus, val activeAuth: ActiveAuthStatus, val claim: CeiIdentityClaim?)

The result of a ro.eidkit.sdk.CeiReader session.

All fields are nullable or have a default — only the fields corresponding to requested operations are populated. passiveAuth is always present.

Passive authentication

passiveAuth is always set. If PassiveAuthStatus.Invalid, the data is still returned but should be treated with caution. The caller is responsible for acting on the status.

Identity claim

claim is non-null only when passiveAuth is PassiveAuthStatus.Valid and identity is non-null. If active auth was also requested and succeeded, CeiIdentityClaim.activeAuthProof is included.

Constructors

Link copied to clipboard
constructor(photo: ByteArray?, signatureImage: ByteArray?, identity: IdentityData?, personalData: PersonalData?, passiveAuth: PassiveAuthStatus, activeAuth: ActiveAuthStatus, claim: CeiIdentityClaim?)

Properties

Link copied to clipboard

Result of active authentication (chip tamper check). ActiveAuthStatus.Skipped if not requested via ro.eidkit.sdk.CeiReader.withActiveAuth.

Link copied to clipboard

Self-contained identity claim for backend verification. Non-null only when passiveAuth is PassiveAuthStatus.Valid and identity is non-null.

Link copied to clipboard

Core identity fields (name, CNP, DOB, sex, nationality) from the EDATA applet. Non-null only when ro.eidkit.sdk.CeiReader.withPersonalData was called with a PIN.

Link copied to clipboard

Result of passive authentication. Always present — never null. See PassiveAuthStatus for how to interpret the result.

Link copied to clipboard

Extended personal data (birthplace, address, document info) from the EDATA applet. Non-null only when ro.eidkit.sdk.CeiReader.withPersonalData was called with a PIN.

Link copied to clipboard

Face photo JPEG bytes from DG2. Non-null only when ro.eidkit.sdk.CeiReader.withPhoto was enabled.

Link copied to clipboard

Handwritten signature JPEG bytes from DG7. Non-null only when ro.eidkit.sdk.CeiReader.withSignatureImage was enabled.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int