WcVerifyClient class

A Verify client that fetches and caches the service public key (until its expiresAt) via an injected WcHttpGet, then validates attestations.

Constructors

WcVerifyClient(WcHttpGet httpGet, {String publicKeyUrl = WcVerify.defaultPublicKeyUrl})

Properties

hashCode int
The hash code for this object.
no setterinherited
httpGet WcHttpGet
final
publicKeyUrl String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getValidation(String attestationJwt, {required String origin, int? nowSeconds}) Future<WcVerifyStatus>
Fetch/cache the key, verify attestationJwt, and return its status against the peer's declared origin.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publicKey({int? nowSeconds}) Future<WcVerifyKey>
The current public key, fetched (and cached) on first use and refetched once the cached one is past its expiresAt. nowSeconds overrides the clock for testing.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited