Package com.bfo.box

Class C2PA_AssertionHashBMFF

All Implemented Interfaces:
C2PA_Assertion

public class C2PA_AssertionHashBMFF extends CborContainerBox implements 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 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

      public List<C2PAStatus> verify() throws IOException
      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
      Throws:
      IOException - if the assertion verification involved I/O and the IO layer threw an exception
    • sign

      public List<C2PAStatus> sign() throws IOException
      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