AndroidRevocationList

@Serializable
data class AndroidRevocationList(val entries: Map<String, AndroidRevocationList.Entry>, val date: Instant? = null, val expires: Instant? = null, val lastModified: Instant? = null)(source)

Represents a revocation list specific to Android attestation as per [the official specification}(https://developer.android.com/privacy-and-security/security-key-attestation#certificate_status), containing information about revoked or suspended certificates, metadata on expiration, and modification timestamps.

Constructors

Link copied to clipboard
constructor(entries: Map<String, AndroidRevocationList.Entry>, date: Instant? = null, expires: Instant? = null, lastModified: Instant? = null)

Types

Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
@Serializable
data class Entry(val status: AndroidRevocationList.RevocationStatus, val reason: AndroidRevocationList.RevocationReason? = null, val expires: Instant? = null, val comment: String? = null)

Represents a revocation entry containing information about the status, reason for revocation, and the optional expiration date.

Link copied to clipboard
class FileLoader(val path: String, val fallbackRevocationListValiditySeconds: Long, fallbackToFileSystemInfo: Boolean = true) : AndroidRevocationList.CachingLoader
Link copied to clipboard
class HttpLoader<T : HttpClientEngineConfig>(engineFactory: HttpClientEngineFactory<T>, val url: String, val fallbackRevocationListValiditySeconds: Long, preferHeaderBasedExpiry: Boolean = true, config: HttpClientConfig<T>.() -> Unit) : AndroidRevocationList.CachingLoader

HTTP CachingLoader that fetches an AndroidRevocationList over HTTP. This class uses an HttpClient to perform requests and parses the fetched JSON content into the revocation list format.

Link copied to clipboard

In-Memory "Loader", that will always return list and ignore all validity.

Link copied to clipboard
interface Loader

Generic Interface to load an AndroidRevocationList. Implementing classes are expected to be configured with any parameters needed for loading, s.t. loading itself requires no parameters

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

Thrown during serializer registration failures.

Properties

Link copied to clipboard

The optional timestamp indicating when the revocation list was issued.

Link copied to clipboard

A map where keys represent unique certificate serial numbers and values correspond to revocation entries detailing the status and reason.

Link copied to clipboard

The optional expiration timestamp after which this list is no longer valid. If null, the entry does not expire. See also isExpired.

Link copied to clipboard

The optional timestamp indicating the last modification date of the list.

Functions

Link copied to clipboard

Retrieves a revocation entry corresponding to the provided serial number.

Link copied to clipboard
Link copied to clipboard

Checks if a device with the given serial number is either revoked or suspended.

Link copied to clipboard