DefaultUniversalResolver

constructor(baseUrl: String, timeout: Int = 30, apiKey: String? = null, protocolAdapter: UniversalResolverProtocolAdapter = StandardUniversalResolverAdapter(), retryConfig: RetryConfig = RetryConfig.default().copy( nonRetryableExceptions = listOf( org.trustweave.did.exception.DidException.InvalidDidFormat::class, // Any DidException subtype is a domain-level error, not a transient network condition, // and must never be retried. org.trustweave.did.exception.DidException::class, ), ), httpClient: HttpClient? = null)

Parameters

baseUrl

Base URL of the Universal Resolver instance (e.g., "https://dev.uniresolver.io")

timeout

Request timeout in seconds (default: 30). Ignored when httpClient is provided.

apiKey

Optional API key for authentication (if required by the resolver)

protocolAdapter

Protocol adapter for the specific Universal Resolver implementation (defaults to StandardUniversalResolverAdapter)

httpClient

Optional pre-configured HttpClient to use for HTTP requests. When null a default client with timeout-based connect timeout is created. Inject a shared client in production to allow connection-pool reuse and easier testing.