Package com.bfo.box
Class C2PA_AssertionThumbnail
java.lang.Object
com.bfo.box.Box
com.bfo.box.JUMBox
com.bfo.box.EmbeddedFileContainerBox
com.bfo.box.C2PA_AssertionThumbnail
- All Implemented Interfaces:
C2PA_Assertion
A C2PA Assertion for the "c2pa.thumbnail.claim" and "c2pa.thumbnail.ingredient" types
Note: this is a placeholder class; verify will return without error
- Since:
- 5
-
Constructor Summary
ConstructorsConstructorDescriptionC2PA_AssertionThumbnail
(String mediaType, String fileName, InputStream data, boolean claim) Create a new assertion -
Method Summary
Methods inherited from class com.bfo.box.EmbeddedFileContainerBox
data, fileName, fileURL, mediaType
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, verify
-
Constructor Details
-
C2PA_AssertionThumbnail
public C2PA_AssertionThumbnail(String mediaType, String fileName, InputStream data, boolean claim) throws IOException Create a new assertion- Parameters:
mediaType
- the media-type of the file (image/*, required)fileName
- the file-name of the file (optional)data
- the InputStream to read the data fromclaim
- if true, this assertion is a claim, if false it is an ingredient- Throws:
IOException
- if the thumbnail cannot be read
-