Payload class

Obtain a short-lived, downscoped provider credential from an external account, sealed to the caller: session or token credentials under scope, or a batch of presigned requests on one object under presign. The outer document members are owned by the framework — SPEC §6.3.

Constructors

Payload({required AccountContextId context, required AccountId account, CredentialScope? scope, PresignBatch? presign, required int ttlSeconds, Ext? ext})
const
Payload.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

account → String
final
context → String
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
presign → PresignBatch?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scope → CredentialScope?
For every brokered model but s3-static-presign: the prefix and actions, or the OAuth scopes, the session or token is downscoped to. objectKey is not used in this version.
final
ttlSeconds → int
Requested lifetime; never more than the binding's maxTtlSeconds. For presign, the lifetime of every URL in the batch.
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