Package com.bfo.box
Class C2PA_AssertionActions
java.lang.Object
com.bfo.box.Box
com.bfo.box.JUMBox
com.bfo.box.CborContainerBox
com.bfo.box.C2PA_AssertionActions
- All Implemented Interfaces:
C2PA_Assertion
A C2PA Assertion for the "c2pa.actions" type
- Since:
- 5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(String action, C2PA_AssertionIngredient ingredient, Json parameters) Add a new action to the list.verify()Verify this assertion, returning a list of status codes describing why this assertion failed or an empty list if it succeeded.Methods inherited from class com.bfo.box.CborContainerBox
cbor, getBoxMethods inherited from class com.bfo.box.Box
add, dump, duplicate, first, fullType, getEncoded, insertBefore, isSparse, length, next, parent, remove, toString, typeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.bfo.box.C2PA_Assertion
asBox, getManifest
-
Constructor Details
-
C2PA_AssertionActions
public C2PA_AssertionActions()Create a new assertion
-
-
Method Details
-
add
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
Description copied from interface:C2PA_AssertionVerify 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:
verifyin interfaceC2PA_Assertion- Returns:
- a list of status codes, which may be empty on success
-