Package-level declarations

Types

Link copied to clipboard

A ChallengeChecker that checks a list of ChallengeCheckers in order.

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