Package-level declarations

Types

Link copied to clipboard

Refuses to send credentials (API keys, bearer tokens) over cleartext HTTP.

Link copied to clipboard
object Redaction

Helpers for keeping credentials out of toString() output and logs.

Link copied to clipboard

Binds a resolved DID document to the DID that was asked for.

Link copied to clipboard
object XmlDateTimeSerializer : KSerializer<Instant>

Serializes Instant in the DID Resolution 1.0 §3.1 datetime format.

Functions

Link copied to clipboard

Extracts all verification method IDs from a DID document.

Link copied to clipboard

Finds a verification method by ID in a DID document.

Link copied to clipboard
fun getServicesByType(document: DidDocument, serviceType: String): List<DidService>

Gets all service endpoints of a specific type from a DID document.

Link copied to clipboard
fun hasServiceType(document: DidDocument, serviceType: String): Boolean

Checks if a DID document has services of a specific type.

Link copied to clipboard

Checks if a DID document has a specific verification method.

Link copied to clipboard

Normalizes a key ID by extracting the fragment identifier.

Link copied to clipboard
fun parseDidOrNull(didString: String): Did?

Safely parses a DID string, returning null if invalid.

Link copied to clipboard

Formats this instant per DID Resolution 1.0 §3.1: a valid XML datetime, adjusted to UTC, without sub-second decimal precision (e.g. 2020-12-20T19:17:47Z).

Link copied to clipboard

Validates a DID string format.