SignedEnvelope class

A signed envelope: RFC 7515 general JSON serialization, and the only shape this build signs or verifies.

fromJson validates structure — a string payload, a non-empty signatures array, each entry carrying a readable protected header — and checks neither the version, which verifyEnvelope answers, nor the payload.

Constructors

SignedEnvelope.fromJson(Map json)
Parses json, refusing anything that is not structurally an envelope.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
payload → Object?
The payload, decoded.
no setter
payloadB64 → String
The payload, base64url, verbatim — see EnvelopeSignature.protected for why it is never held decoded.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signature → EnvelopeSignature
The first entry, for the callers that want an entry — the payload's encoding and the signer claim are the same in all of them.
no setter
signatures → List<EnvelopeSignature>
One entry per signing key of one signer, in the order the signer listed them — every entry over the same payload, each under its own algorithm, all naming the same signer.
final
signerEnrollmentId → String?
The signer's enrollment-id claim, or null when the envelope makes none — a key package signed at enroll:request time has no id to stamp, and its authority is the record binding it to the request that created it.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
The wire form. Reproduces what was parsed byte for byte, because both halves were kept verbatim.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
Value equality over the wire bytes: two envelopes carrying the same payload under the same signature are the same envelope, whether one was parsed and the other signed.
override