public class CMSTimeStampedGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected URI |
dataUri |
protected MetaData |
metaData |
| Constructor and Description |
|---|
CMSTimeStampedGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
initialiseMessageImprintDigestCalculator(DigestCalculator calculator)
Initialise the passed in calculator with the MetaData for this message, if it is
required as part of the initial message imprint calculation.
|
void |
setDataUri(URI dataUri)
Set the dataURI to be included in message.
|
void |
setMetaData(boolean hashProtected,
String fileName,
String mediaType)
Set the MetaData for the generated message.
|
void |
setMetaData(boolean hashProtected,
String fileName,
String mediaType,
Attributes attributes)
Set the MetaData for the generated message.
|
public void setDataUri(URI dataUri)
dataUri - URI for the data the initial message imprint digest is based on.public void setMetaData(boolean hashProtected,
String fileName,
String mediaType)
hashProtected - true if the MetaData should be included in first imprint calculation, false otherwise.fileName - optional file name, may be null.mediaType - optional media type, may be null.public void setMetaData(boolean hashProtected,
String fileName,
String mediaType,
Attributes attributes)
hashProtected - true if the MetaData should be included in first imprint calculation, false otherwise.fileName - optional file name, may be null.mediaType - optional media type, may be null.attributes - optional attributes, may be null.public void initialiseMessageImprintDigestCalculator(DigestCalculator calculator) throws CMSException
calculator - the digest calculator to be initialised.CMSException - if the MetaData is required and cannot be processedCopyright © 2015. All rights reserved.