Package com.bfo.box

Class C2PAContainerBox


public class C2PAContainerBox extends ExtensionBox
A C2PAContainerBox wraps a C2PAStore inside a "uuid" box, for safe storage inside an ISO BMFF-based file. It is described in the C2PA Specification.
Since:
5
  • Constructor Details

    • C2PAContainerBox

      public C2PAContainerBox()
      Create a new C2PAContainerBox
  • Method Details

    • purpose

      public String purpose()
      Return the box purpose, eg "manifest" or "merkle"
      Returns:
      the purpose
    • offset

      public long offset()
      For boxes with a purpose of "manifest", return the absolute file byte offset to the first auxiliary "uuid" C2PA box with purpose equal to "merkle".
      Returns:
      the offset as described or zero if not applicable.
    • toString

      public String toString()
      Description copied from class: Box
      Return a String representation of this Box, which will be parseable as JSON
      Overrides:
      toString in class ExtensionBox