DIDUrl

data class DIDUrl @JvmOverloads constructor(val did: DID, val path: Array<String>? = arrayOf(), val parameters: Map<String, String>? = mapOf(), val fragment: String? = null)(source)

Represents a DIDUrl with "did", "path", "parameters", "fragment" As specified in w3 standards

Constructors

Link copied to clipboard
constructor(did: DID, path: Array<String>? = arrayOf(), parameters: Map<String, String>? = mapOf(), fragment: String? = null)

Properties

Link copied to clipboard
val did: DID
Link copied to clipboard
val fragment: String? = null
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if the current DIDUrl instance is equal to the specified other object.

Link copied to clipboard

Returns the fragment portion of a DID URL as a string.

Link copied to clipboard
open override fun hashCode(): Int

Calculates the hash code for the current DIDUrl instance.

Link copied to clipboard

Returns the path portion of a DID URL as a string. If the path is null, an empty string is returned.

Link copied to clipboard

Generates a query string based on the provided parameters.

Link copied to clipboard
fun string(): String

Returns a string representation of the DID URL.

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

Returns a string representation of the current DIDUrl instance.