InMemoryPresentationNonceStore
class InMemoryPresentationNonceStore @JvmOverloads constructor(ttl: Duration = 30.minutes, capacity: Int, clock: Clock = Clock.System) : PresentationNonceStore
Bounded in-memory PresentationNonceStore; per-process, so use a shared implementation when more than one verifier instance can receive the same transaction.
Nonces are remembered for ttl, which must be at least the KB-JWT freshness window (kbJwtMaxAge + clock skew, 10 minutes + 5 minutes by default) or an expired entry would allow a still-fresh KB-JWT to be replayed. When capacity unexpired nonces are held, new nonces are refused with IllegalStateException rather than evicting one that is still protecting a transaction.