StreamDescriptor class
A descriptor for a transfer that happens outside Trust Task documents, at an
address the recipient publishes — the stream algorithm, and any other algorithm a
recipient offers that is shaped as an address plus a bearer credential. Identical
in members to the vta/backup/*/1.0 descriptor.
Constructors
- StreamDescriptor({required BundleId bundleId, required String algorithm, required String transportUrl, required String transportToken, required ExpectedSha256 expectedSha256, required ExpectedSizeBytes expectedSizeBytes, required ExpiresAt expiresAt})
-
const
-
StreamDescriptor.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
- algorithm → String
-
The mechanism in use. Never
chunkedTrustTask, which has its own descriptor shape; a descriptor naming it with a transport address is malformed.final - bundleId → String
-
final
- expectedSha256 → String
-
final
- expectedSizeBytes → ChunkCount
-
final
- expiresAt → String
-
final
- hashCode → ChunkCount
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transportToken → String
-
Bearer credential for transportUrl, presented in the X-Backup-Token header. Minted
per bundle and never reused. A recipient should store only a hash of it, and should
accept an export token once.
final
- transportUrl → String
-
Where to fetch (export) or write (import) the bytes. A recipient with no address at
which it is reachable cannot produce this and refuses with transportUnavailable
rather than returning an unusable one. An import address is write-only: staged
bytes are never served back from it.
final
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