check

suspend fun RevocationChecker.check(credential: Credential, trustManager: TrustManagerInterface, onlyTrusted: Boolean = true, atTime: Instant = Clock.System.now(), bypassCache: Boolean = false, preferJwt: Boolean = false): RevocationCheckResult

Convenience extension to check the revocation state for a given Credential.

Return

RevocationCheckResult indicating whether the credential is valid, revoked, suspended, or unknown.

Parameters

credential

credential for which the revocation state should .

trustManager

trust manager to find the root certificate for the credential issuer.

onlyTrusted

only use revocation data which could be validated (including signature check)

atTime

The point in time at which to evaluate revocation status validity. Defaults to current system time.

bypassCache

If true, forces downloading a fresh status/identifier list payload from the network rather than using cached data.

preferJwt

Prefer status list data in JWT format, rather than more compact CWT; mostly exposed for testing

See also