revoke

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

Deprecated

Boolean return with thrown failures; use revokeResult { } for a sealed result.

Replace with

revokeResult(timeout, block)

Revoke a credential using the configured TrustWeave instance.

Timeout semantics: a revocation that exceeds timeout throws org.trustweave.core.exception.TrustWeaveException.OperationTimedOut — the Boolean return cannot honestly express a timeout (mapping it to false would silently report an unknown outcome as "not revoked"). On timeout, the revocation outcome is unknown; re-check the credential's status before retrying.

Result contract: true/false is the revocation manager's answer for a well-formed request (false: the manager did not change the entry, e.g. unknown index). Everything else throws: a missing revocation manager or missing credential(...) / statusList(...) (IllegalStateException), manager errors (propagated as thrown), and timeouts (below).

Return

true if revocation succeeded

Parameters

timeout

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

block

DSL block for specifying revocation parameters

Throws