Package com.bfo.box

Class CborContainerBox

Direct Known Subclasses:
C2PA_AssertionActions, C2PA_AssertionCloudData, C2PA_AssertionEndorsement, C2PA_AssertionGDepth, C2PA_AssertionHashBMFF, C2PA_AssertionHashData, C2PA_AssertionIngredient, C2PA_AssertionSoftBinding, C2PAClaim, C2PASignature

public class CborContainerBox extends JUMBox
A CborContainerBox is a JUMBF wrapper around a single CborBox. It is defined in ISO19566-5 Appendix B.5
Since:
5
  • Constructor Details

    • CborContainerBox

      public CborContainerBox()
      Create a new uninitialized box, for loading. Don't call this constructor
    • CborContainerBox

      public CborContainerBox(String label, Json json)
      Create a new CBOR container box
      Parameters:
      label - the label, which must not be null
      json - the cbor object, which will be intialized to an empty map if it's null
  • Method Details

    • getBox

      public CborBox getBox()
      Return the CborBox child
      Returns:
      the CborBox
    • cbor

      public Json cbor()
      Return the CBOR object stored within this container
      Returns:
      the cbor