Payload class
What a Verifier asks of a Holder: identify an artifact by digest, supply a freshness challenge, and name the disclosure categories wanted. The outer document members (id, type, issuer, recipient, issuedAt, expiresAt, proof) are owned by the framework — SPEC §6.3.
Constructors
-
Payload({required Artifact artifact, required String challenge, List<
DisclosureCategory> ? disclosure, Ext? ext}) -
const
-
Payload.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- artifact → Artifact
-
final
- challenge → String
-
Verifier-supplied freshness nonce, echoed verbatim in the response. The floor is 16
characters because anti-replay is the only integrity property the request has.
final
-
disclosure
→ List<
DisclosureCategory> ? -
Categories the Verifier requests. A Holder MAY return fewer; it MUST NOT return
more.
final
- ext → Ext?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited