DidResolutionMetadata

@Serializable
data class DidResolutionMetadata(val contentType: String = DidMediaTypes.DID, val error: DidResolutionError? = null, val proof: List<JsonObject> = emptyList(), val pattern: String? = null, val driverUrl: String? = null, val duration: Long? = null, val retrieved: Instant? = null, val properties: Map<String, String> = emptyMap())

DID resolution metadata per DID Resolution 1.0 §4.2 — metadata about the resolution process.

Note that nextUpdate, nextVersionId, canonicalId and equivalentId are document metadata (§4.3) and live on org.trustweave.did.model.DidDocumentMetadata, not here.

Example:

DidResolutionMetadata(
contentType = DidMediaTypes.DID,
retrieved = Clock.System.now()
)

Constructors

Link copied to clipboard
constructor(contentType: String = DidMediaTypes.DID, error: DidResolutionError? = null, proof: List<JsonObject> = emptyList(), pattern: String? = null, driverUrl: String? = null, duration: Long? = null, retrieved: Instant? = null, properties: Map<String, String> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Media type of the returned didDocument (§4.2). OPTIONAL in the spec; always emitted here.

Link copied to clipboard

Non-normative: driver URL when a Universal Resolver driver served the request.

Link copied to clipboard

Non-normative: resolution duration in milliseconds (§4.2 lists duration as an example).

Link copied to clipboard

RFC 9457 error object; MUST be present when resolution is unsuccessful (§4).

Link copied to clipboard

Human-readable error text.

Link copied to clipboard

Non-normative: resolution pattern that matched (e.g. did:web).

Link copied to clipboard
val proof: List<JsonObject>

Proofs generated by the resolver (§4.2). Each entry is a proof map.

Link copied to clipboard

Additional registered or method-specific members (§4.2 extensibility).

Link copied to clipboard

Timestamp the document was retrieved; §3.1 datetime format on the wire.

Functions

Link copied to clipboard
fun toJson(): JsonObject

Serializes to the §4.2 JSON structure, omitting absent members.

Link copied to clipboard
fun toMap(): Map<String, Any?>

Flat map view; timestamps use the §3.1 datetime format.