Package com.bfo.box
Class C2PAManifest
java.lang.Object
com.bfo.box.Box
com.bfo.box.JUMBox
com.bfo.box.C2PAManifest
The manifest box
represents a signed sequence of assertions. There is at least one manifest for any store box
.
A valid manifest has one or more assertions, a claim box
which lists some or all of those assertions
along with some additional metadata, and a signature box
which signs the claim.
- Since:
- 5
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new uninitialized box, for loading.C2PAManifest
(String uuid) Create a new C2PAManifest -
Method Summary
Modifier and TypeMethodDescriptionReturn a live list of assertions, which can be edited.getClaim()
Return theclaim
object, creating it if requiredRetrieves the InputStream set bysetInputStream(java.io.InputStream)
and clears it.Return thesignature
object, creating it if requiredvoid
Verifying C2PA requires verifying the data - this method need to be called before verifying the assertions returned bygetAssertions()
to supply that data.
-
Constructor Details
-
C2PAManifest
public C2PAManifest()Create a new uninitialized box, for loading. Don't call this constructor -
C2PAManifest
Create a new C2PAManifest- Parameters:
uuid
- the UUID, which must not be null
-
-
Method Details
-
setInputStream
Verifying C2PA requires verifying the data - this method need to be called before verifying the assertions returned bygetAssertions()
to supply that data.- Parameters:
in
- the InputStream to read from
-
getInputStream
Retrieves the InputStream set bysetInputStream(java.io.InputStream)
and clears it. Calling the method a second time will return null.- Returns:
- the InputStream to read from
-
getAssertions
Return a live list of assertions, which can be edited.- Returns:
- the assertion list
-
getClaim
Return theclaim
object, creating it if required- Returns:
- the claim
-
getSignature
Return thesignature
object, creating it if required- Returns:
- the signature
-