Package com.bfo.box
Class C2PA_AssertionHashBMFF
java.lang.Object
com.bfo.box.Box
com.bfo.box.JUMBox
com.bfo.box.CborContainerBox
com.bfo.box.C2PA_AssertionHashBMFF
- All Implemented Interfaces:
C2PA_Assertion
A C2PA Assertion for the "c2pa.hash.bmff" or "c2pa.hash.bmff.v2" types
Note: this is a placeholder class; verify and sign will throw an UnsupportedOperationException
- Since:
- 5
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bfo.box.CborContainerBox
cbor, getBox
Methods inherited from class com.bfo.box.Box
add, dump, duplicate, first, fullType, getEncoded, insertBefore, isSparse, length, next, parent, remove, toString, type
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.bfo.box.C2PA_Assertion
asBox, getManifest
-
Constructor Details
-
C2PA_AssertionHashBMFF
public C2PA_AssertionHashBMFF(boolean v2) Create a new BMFF assertion- Parameters:
v2
- if true, create a version 2 BMFF
-
-
Method Details
-
isV2
public boolean isV2()Return whether this BMFF is version 2- Returns:
- true if version 2
-
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 interfaceC2PA_Assertion
- Returns:
- a list of status codes, which may be empty on success
- Throws:
IOException
- if the assertion verification involved I/O and the IO layer threw an exception
-
sign
Calculate the digest during signing. Not yet implemented, throws UnsupportedOperationException- Returns:
- a list of failure codes, or an empty list on success
- Throws:
IOException
- if such an exception was encountered during signing
-