public class CMSTimeStampedDataGenerator extends CMSTimeStampedGenerator
CMSTimeStampedGenerator.setDataUri(java.net.URI)/CMSTimeStampedGenerator.setMetaData(boolean, java.lang.String, java.lang.String) methods, it produces a
CMSTimeStampedData whose evidence chain holds that one token.dataUri, metaData| Constructor and Description |
|---|
CMSTimeStampedDataGenerator() |
| Modifier and Type | Method and Description |
|---|---|
CMSTimeStampedData |
generate(TimeStampToken timeStamp)
Generate a TimeStampedData with no encapsulated content (e.g. when the document
is referenced via a dataUri).
|
CMSTimeStampedData |
generate(TimeStampToken timeStamp,
byte[] content)
Generate a TimeStampedData encapsulating the passed in content.
|
CMSTimeStampedData |
generate(TimeStampToken timeStamp,
java.io.InputStream content)
Generate a TimeStampedData encapsulating the content drained from the passed in
stream.
|
initialiseMessageImprintDigestCalculator, setDataUri, setMetaData, setMetaDatapublic CMSTimeStampedData generate(TimeStampToken timeStamp) throws CMSException
timeStamp - the initial time stamp token.CMSException - if the structure cannot be built.public CMSTimeStampedData generate(TimeStampToken timeStamp, byte[] content) throws CMSException
timeStamp - the initial time stamp token.content - the document content to encapsulate.CMSException - if the structure cannot be built.public CMSTimeStampedData generate(TimeStampToken timeStamp, java.io.InputStream content) throws CMSException
timeStamp - the initial time stamp token.content - a stream over the document content to encapsulate, or null for none.CMSException - if the content cannot be read or the structure cannot be built.