StandardUniversalResolverAdapter

Protocol adapter for standard Universal Resolver implementations.

Uses the standard endpoint pattern as defined by the Universal Resolver reference implementation:

  • Resolution: GET /1.0/identifiers/{did}

  • Methods: GET /1.0/methods

This is the pattern used by:

  • dev.uniresolver.io (public instance)

  • Reference Universal Resolver implementation

  • Most self-hosted Universal Resolver instances

Example Usage:

val resolver = DefaultUniversalResolver(
baseUrl = "https://dev.uniresolver.io",
protocolAdapter = StandardUniversalResolverAdapter()
)

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val providerName: String

Gets the provider name for metadata. This is used in resolution metadata to identify which provider was used.

Functions

Link copied to clipboard
open override fun buildMethodsUrl(baseUrl: String): String?

Builds the URL for querying supported methods.

Link copied to clipboard
open override fun buildResolveUrl(baseUrl: String, did: String): String

Builds the URL for resolving a DID.

Link copied to clipboard
open override fun configureAuth(requestBuilder: HttpRequest.Builder, apiKey: String?)

Configures HTTP request headers for authentication.

Link copied to clipboard
open override fun extractDidDocument(jsonResponse: JsonObject): JsonObject?

Extracts the DID document from the response.

Link copied to clipboard
open override fun extractDocumentMetadata(jsonResponse: JsonObject): JsonObject?

Extracts document metadata from the response.

Link copied to clipboard
open override fun extractResolutionMetadata(jsonResponse: JsonObject): JsonObject

Extracts resolution metadata from the response.