EidKitConfig

Configuration for the EidKit SDK.

Build using the EidKitConfig DSL function:

EidKit.configure(context, EidKitConfig {
isoDepTimeoutMs = 20_000
certSource = CertSource.Bundled
crlUrl = null
tracerProvider = myOtelSdk.tracerProvider
})

All properties have safe defaults — a zero-configuration setup works out of the box.

Types

Link copied to clipboard
class Builder

Builder DSL for EidKitConfig.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Source of the CSCA root certificate used for passive and active auth chain verification. Defaults to CertSource.Bundled (the Romanian MAI cert shipped with the SDK).

Link copied to clipboard

Optional URL for fetching a Certificate Revocation List (CRL) for the Document Signing Certificate. If null (default), CRL checking is skipped. If set but unreachable, the session continues and the skip is recorded in telemetry.

Link copied to clipboard

IsoDep NFC timeout in milliseconds. The default (20 000 ms) is required — the Romanian CEI chip is slow during PACE and large file reads. Do not lower this below 15 000 ms.

Link copied to clipboard

EidKit license token. Reserved for future licensing enforcement — currently unused.

Link copied to clipboard

Optional error capture callback. Called for every ro.eidkit.sdk.error.CeiError thrown during a session, before the error is re-thrown to the caller.

Link copied to clipboard

Base URL for the EidKit document signing service.

Link copied to clipboard
val tracerProvider: TracerProvider?

OpenTelemetry TracerProvider for session instrumentation. If null (default), all telemetry is no-op — no spans are emitted and no OTel runtime is initialised. Set this to your application's OTel SDK instance.