Package-level declarations

Types

Link copied to clipboard
class CachingRevocationChecker(storage: Storage, httpClient: HttpClient = HttpClient(), httpTimeout: Duration = 10.seconds, cachingDuration: Duration = 60.days, useETag: Boolean = true, useLastModified: Boolean = true) : RevocationChecker

Storage-backed implementation of RevocationChecker that caches downloaded data (status and identifier lists) in a StorageTable.

Link copied to clipboard
class CompressedStatusList(val bitsPerItem: Int, compressedStatusList: ByteString, val creationTime: Instant = Clock.System.now(), val expirationTime: Instant = creationTime + 20.minutes) : RevocationData

Status list as defined in OAuth Status List in the compressed form.

Link copied to clipboard
class IdentifierList(identifiers: Set<ByteString>, val creationTime: Instant = Clock.System.now(), val expirationTime: Instant = creationTime + 20.minutes) : RevocationData

Revocation list as defined in ISO/IEC 18013-5 Section 12.3.6.4 "Identifier list details"

Link copied to clipboard

Interface for checking and managing the revocation status of digital credentials.

Link copied to clipboard
data class RevocationCheckResult(val state: RevocationCheckState, val isTrusted: Boolean, val error: Throwable? = null)

Result of checking a document's revocation status.

Link copied to clipboard

Represents the state of a document revocation check.

Link copied to clipboard
sealed class RevocationData

Abstract class that represents some kind of revocation data

Link copied to clipboard
data class RevocationInfo(val revocationStatus: RevocationStatus, val certificate: X509Cert?)

Information needed to perform a revocation check for a credential or a credential presentation.

Link copied to clipboard
sealed class RevocationStatus

Data that describes how validity/revocation status of a credential can be obtained.

Link copied to clipboard
class StatusList(val bitsPerItem: Int, statusList: ByteArray)

Status list as defined in OAuth Status List in the uncompressed form.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
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.

Link copied to clipboard

Convenience method to extract RevocationInfo from a Credential.