revoke

suspend fun revoke(timeout: Duration = 10.seconds, block: RevocationBuilder.() -> Unit): Boolean

Revoke a credential.

Timeout semantics: the Boolean return type cannot honestly express a timeout — returning false would silently misreport an unknown outcome as "not revoked". A revocation that exceeds timeout therefore throws TrustWeaveException.OperationTimedOut (with the underlying TimeoutCancellationException as cause) instead of leaking the raw cancellation exception; real coroutine cancellation of the caller still propagates.

Return

true if revocation succeeded

Parameters

timeout

Maximum time to wait for revocation (default: 10 seconds)

block

DSL block for specifying revocation parameters

Throws

if the operation exceeds timeout; the revocation outcome is unknown and callers should re-check status