FidoMdsTrustSource

class FidoMdsTrustSource(httpClient: HttpClient, metadataUrl: String, nowEpochSeconds: () -> Long) : TrustAnchorSource

Pull-based FIDO MDS trust source that maps AAGUIDs to attestation roots.

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, metadataUrl: String, nowEpochSeconds: () -> Long)

Functions

Link copied to clipboard
open override fun findTrustAnchors(aaguid: Aaguid?): List<Base64UrlBytes>
Link copied to clipboard
suspend fun refreshIfStale(maxAgeSeconds: Long)

Refreshes cached metadata when the cache age exceeds maxAgeSeconds.