Package-level declarations

Types

Link copied to clipboard
@ThreadSafe
class ChainedChallengeChecker(challengeCheckers: ImmutableList<ChallengeChecker>, coroutineScope: CoroutineScope) : ChallengeChecker

A ChallengeChecker that checks a list of ChallengeCheckers in order. The challengeCheckers will be executed in the provided coroutineScope.

Link copied to clipboard
@ThreadSafe
class ChallengeMatcher(expectedChallenge: ByteString) : ChallengeChecker

A basic implementation of ChallengeChecker that checks if the challenge in the attestation certificate is equal to the expected challenge.

Link copied to clipboard
@ThreadSafe
class InMemoryLruCache(maxCacheSize: Int) : ChallengeChecker

A ChallengeChecker which checks for replay of challenges via an in-memory LRU cache which holds up to maxCacheSize challenges. Challenges are considered invalid if they are already present in the cache, which prevents replay (reuse of challenges). Checking a challenge will affect the ordering of the cache, making it more-recently-used.