Top Fields Constructors Methods
org.bouncycastle.tsp.cms

public Class CMSTimeStampedGenerator

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.tsp.cms.CMSTimeStampedDataGenerator
Imports
java.net.URI, org.bouncycastle.asn1.ASN1Boolean, .DERIA5String, .DERUTF8String, org.bouncycastle.asn1.cms.Attributes, .MetaData, org.bouncycastle.cms.CMSException, org.bouncycastle.operator.DigestCalculator

Field Summary

Modifier and TypeField and Description
protected URI
protected MetaData

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
initialiseMessageImprintDigestCalculator(DigestCalculator
the digest calculator to be initialised.
calculator
)

Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation.

public void
setDataUri(URI
URI for the data the initial message imprint digest is based on.
dataUri
)

Set the dataURI to be included in message.

public void
setMetaData(boolean
true if the MetaData should be included in first imprint calculation, false otherwise.
hashProtected
,
String
optional file name, may be null.
fileName
,
String
optional media type, may be null.
mediaType
)

Set the MetaData for the generated message.

public void
setMetaData(boolean
true if the MetaData should be included in first imprint calculation, false otherwise.
hashProtected
,
String
optional file name, may be null.
fileName
,
String
optional media type, may be null.
mediaType
,
Attributes
optional attributes, may be null.
attributes
)

Set the MetaData for the generated message.

private void
setMetaData(boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes attributes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dataUriback to summary
protected URI dataUri
metaDataback to summary
protected MetaData metaData

Constructor Detail

CMSTimeStampedGeneratorback to summary
public CMSTimeStampedGenerator()

Method Detail

initialiseMessageImprintDigestCalculatorback to summary
public void initialiseMessageImprintDigestCalculator(DigestCalculator calculator) throws CMSException

Initialise the passed in calculator with the MetaData for this message, if it is required as part of the initial message imprint calculation. After initialisation the calculator can then be used to calculate the initial message imprint digest for the first timestamp.

Parameters
calculator:DigestCalculator

the digest calculator to be initialised.

Exceptions
CMSException:
if the MetaData is required and cannot be processed
setDataUriback to summary
public void setDataUri(URI dataUri)

Set the dataURI to be included in message.

Parameters
dataUri:URI

URI for the data the initial message imprint digest is based on.

setMetaDataback to summary
public void setMetaData(boolean hashProtected, String fileName, String mediaType)

Set the MetaData for the generated message.

Parameters
hashProtected:boolean

true if the MetaData should be included in first imprint calculation, false otherwise.

fileName:String

optional file name, may be null.

mediaType:String

optional media type, may be null.

setMetaDataback to summary
public void setMetaData(boolean hashProtected, String fileName, String mediaType, Attributes attributes)

Set the MetaData for the generated message.

Parameters
hashProtected:boolean

true if the MetaData should be included in first imprint calculation, false otherwise.

fileName:String

optional file name, may be null.

mediaType:String

optional media type, may be null.

attributes:Attributes

optional attributes, may be null.

setMetaDataback to summary
private void setMetaData(boolean hashProtected, DERUTF8String fileName, DERIA5String mediaType, Attributes attributes)