ClaimV2 class final

A C2PA claim using the version 2 created/gathered assertion shape.

Inheritance

Constructors

ClaimV2({required String label, required String instanceId, required String signatureUri, required ClaimGeneratorInfo claimGeneratorInfo, required Iterable<ClaimHashedUri> createdAssertions, required Uint8List rawBytes, Iterable<ClaimHashedUri> gatheredAssertions = const [], String? title, Iterable<String> redactions = const [], String? algorithm, String? softAlgorithm, Map<String, Object?> unknownFields = const {}})
Creates an immutable version 2 claim.

Properties

algorithm → String?
Hard-binding hash algorithm from alg, or null when omitted.
finalinherited
assertions → List<ClaimHashedUri>
All hashed assertion references in the claim.
finalinherited
claimGenerator → String?
Legacy v1 claim_generator string, or null for v2 claims.
finalinherited
claimGeneratorInfo → List<ClaimGeneratorInfo>
Claim-generator metadata entries.
finalinherited
createdAssertions → List<ClaimHashedUri>
V2 created_assertions; empty for v1 claims.
finalinherited
format → String?
Declared asset MIME format for v1 claims, or null for v2 claims.
finalinherited
gatheredAssertions → List<ClaimHashedUri>
V2 gathered_assertions; empty for v1 claims.
finalinherited
generatorInfo → ClaimGeneratorInfo
Single generator metadata entry required by version 2 claims.
no setter
hashCode → int
The hash code for this object.
no setterinherited
instanceId → String
Claim instanceID value.
finalinherited
label → String
Manifest label that contained this claim.
finalinherited
rawBytes → Uint8List
Immutable original CBOR bytes used to decode the claim.
finalinherited
redactions → List<String>
Assertion URIs listed in redacted_assertions.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signatureUri → String
URI of the signature box referenced by the claim.
finalinherited
softAlgorithm → String?
Soft-binding hash algorithm from alg_soft, or null when omitted.
finalinherited
title → String?
Optional Dublin Core title from dc:title.
finalinherited
unknownFields → Map<String, Object?>
Unrecognized claim fields preserved from the decoded CBOR map.
finalinherited
version → ClaimVersion
Claim version decoded from the version-specific assertion list.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toCborMap() → Map<String, Object?>
Encodes this claim as a CBOR-compatible map.
override
toString() → String
A string representation of this object.
inherited

Operators

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