DriverConfig

@Serializable
data class DriverConfig(val type: String, val baseUrl: String? = null, val registrarUrl: String? = null, val protocolAdapter: String? = null, val apiKey: String? = null, val timeout: Int? = null, val config: Map<String, String> = emptyMap())

Driver configuration for DID method operations.

Different driver types support different ways of interacting with DID methods:

  • universal-resolver: Uses a Universal Resolver instance for resolution

  • native: Native implementation (requires code)

  • custom: Custom driver implementation

Constructors

Link copied to clipboard
constructor(type: String, baseUrl: String? = null, registrarUrl: String? = null, protocolAdapter: String? = null, apiKey: String? = null, timeout: Int? = null, config: Map<String, String> = emptyMap())

Properties

Link copied to clipboard

API key for authentication (if required)

Link copied to clipboard

Base URL for Universal Resolver (required for universal-resolver type)

Link copied to clipboard

Additional driver-specific configuration

Link copied to clipboard

Protocol adapter name for Universal Resolver (e.g., "standard", "godiddy")

Link copied to clipboard

Base URL for Universal Registrar (optional, for create/update/deactivate operations)

Link copied to clipboard
val timeout: Int?

Timeout in seconds for HTTP requests (default: 30)

Link copied to clipboard

Type of driver: "universal-resolver", "native", or "custom"

Functions

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

Redacts apiKey and the values of config (which may carry credentials).