Add an action to the manifest's actions assertion.
Add an ingredient to the builder from a definition only.
Ingredient definition.
Add an ingredient to the builder from a definition, format, and blob. Values specified in the ingredient definition will be merged with the ingredient, and these values take precendence.
Ingredient definition.
Format of the ingredient.
Blob of the ingredient's bytes.
Add a resource to the builder's resource store with an ID and blob of the resource's bytes.
ID associated with the resource being added.
Blob of the resource's bytes.
Dispose of this Builder, freeing the memory it occupied and preventing further use. Call this whenever the Builder is no longer needed.
Gets the current manifest definition held by the builder.
The ManifestDefinition held by the builder.
Sets the builder "intent."
Sets the state of the no_embed flag. To skip embedding a manifest (e.g. for the remote-only case) set this to true.
Value to set the no_embed flag.
Sets the remote URL for a remote manifest. The manifest is expected to be available at this location.
URL pointing to the location the remote manifest will be stored.
Set a thumbnail from a blob to be included in the manifest. The blob should represent the asset being signed.
Format of the thumbnail
Blob of the thumbnail bytes
Sign an asset.
Sign an asset and get both the signed asset bytes and the manifest bytes.
Save the builder into .c2pa format. This "archive" can be added to as an ingredient with addIngredientFromBlob
A builder archive in application/c2pa format.
Exposes methods for building C2PA manifests and signing assets.