SpecPolicy class

The per-specification declarations a consumer needs to apply SPEC §7.2 items 5b, 7 and 8. Generated libraries export this as spec / responseSpec.

Constructors

SpecPolicy({required String typeUri, bool isBearer = false, bool isProofRequired = false, bool isRecipientRequired = false, bool isIssuedAtRequired = false, String? payloadSchema})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
isBearer → bool
§4.8.3 — the specification opts out of the §4.8.2 audience-binding rule.
final
isIssuedAtRequired → bool
§7.3 item 17 — issuedAtRequirement is REQUIRED, raising §4.2's issuedAt SHOULD to a MUST for this specification's documents. A specification defining a consequential Trust Task (§2) must declare it, so that §7.2 item 11's duplicate-execution record always has a window to sit in.
final
isProofRequired → bool
§7.3 item 8 — proofRequirement is REQUIRED.
final
isRecipientRequired → bool
§7.3 item 5 — the party filling recipient is REQUIRED.
final
payloadSchema → String?
This variant's payload schema as JSON text (§7.2 item 2), carried so a consumer has something to validate against. Null only for a hand-written policy that omits it.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeUri → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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