ContextPolicy class

Per-context restrictions the VTA enforces. Every member is optional, and absence means unrestricted, not empty — a policy that omits presentableTypes permits every type, while one that sets it to \[\] permits none. The two are opposite instructions and a consumer MUST NOT collapse them.

Constructors

ContextPolicy({List<String>? trustedVerifiers, List<String>? presentableTypes, List<String>? signableKeys, bool? exportAllowed, Map<String, dynamic>? quotas, Ext? ext})
const
ContextPolicy.fromJson(Map<String, dynamic> json)
Read this payload from a decoded JSON object.
factory

Properties

exportAllowed → bool?
Whether material in this context may leave it through an export. Defaults to true; set it to false for a context whose contents must not be extractable.
final
ext → Ext?
final
hashCode → int
The hash code for this object.
no setterinherited
presentableTypes → List<String>?
Credential types that may be presented from this context. Absent: any type. Present-but-empty: none.
final
quotas → Ext?
Resource limits for the context. Shape is maintainer-defined.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signableKeys → List<String>?
Key ids the signing oracle may be invoked on within this context. Absent: every key the context holds. Present-but-empty: no keys.
final
trustedVerifiers → List<String>?
VIDs permitted to receive presentations from this context. Absent: any verifier. Present-but-empty: none.
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