testing library
Test doubles for dpop_flutter and its adapters.
Not exported from the main dpop_flutter.dart library - import this
library explicitly (typically only from dev_dependencies test code).
Classes
- FixedDpopClock
- A DpopClock that returns a fixed, settable time instead of the system clock - makes expiry/clock-skew behaviour deterministic in tests.
- InMemoryDpopKeyStore
- An in-memory DpopKeyStore, for tests that shouldn't touch real secure storage.
- InMemoryDpopNonceStore
- The default DpopNonceStore: keeps nonces in memory, scoped per origin (scheme + host + port).
- P256WebCryptoProvider
-
The default
CryptoProvider: ECDSA P-256 (ES256) backed bypackage:webcrypto, which wraps native BoringSSL (mobile/desktop) or the browser's Web Crypto API (web).