Package com.bfo.box

Class C2PA_AssertionActions

All Implemented Interfaces:
C2PA_Assertion

public class C2PA_AssertionActions extends CborContainerBox implements C2PA_Assertion
A C2PA Assertion for the "c2pa.actions" type
Since:
5
  • Constructor Details

    • C2PA_AssertionActions

      public C2PA_AssertionActions()
      Create a new assertion
  • Method Details

    • add

      public void add(String action, C2PA_AssertionIngredient ingredient, Json parameters)
      Add a new action to the list. This assertion must have already been added to the manifest. An ingredient can be specified as a reference, and if so it too must be in the manifest: its details will be added to the parameters.
      Parameters:
      action - the action name, eg "c2pa.opened"
      ingredient - the ingredient to refer to, or null.
      parameters - any extra parameters, or null
    • verify

      public List<C2PAStatus> verify()
      Description copied from interface: C2PA_Assertion
      Verify this assertion, returning a list of status codes describing why this assertion failed or an empty list if it succeeded. The default implementation succeeds, and returns an empty list.
      Specified by:
      verify in interface C2PA_Assertion
      Returns:
      a list of status codes, which may be empty on success