KeyIdResult

sealed class KeyIdResult

Sealed result of TrustWeave.getKeyIdResult(did).

Replaces the kotlin.Result<String> of getKeyId, so key selection follows the same when-based handling as the other facade operations.

Inheritors

Types

Link copied to clipboard
data class Failure(val reason: String, val cause: Throwable? = null) : KeyIdResult

The DID could not be resolved, or its document has no usable signing key.

Link copied to clipboard
data class Success(val keyId: String) : KeyIdResult

keyId is the ID of the key the DID issues with.

Functions

Link copied to clipboard

Unwraps KeyIdResult.Success or throws IllegalStateException carrying the failure reason.