org.bouncycastle.cms

Class DefaultSignedAttributeTableGenerator

public class DefaultSignedAttributeTableGenerator extends Object implements CMSAttributeTableGenerator

Default signed attributes generator.
Constructor Summary
DefaultSignedAttributeTableGenerator()
Initialise to use all defaults
DefaultSignedAttributeTableGenerator(AttributeTable attributeTable)
Initialise with some extra attributes or overrides.
Method Summary
protected HashtablecreateStandardAttributeTable(Map parameters)
Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, and messageDigest.
AttributeTablegetAttributes(Map parameters)

Constructor Detail

DefaultSignedAttributeTableGenerator

public DefaultSignedAttributeTableGenerator()
Initialise to use all defaults

DefaultSignedAttributeTableGenerator

public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable)
Initialise with some extra attributes or overrides.

Parameters: attributeTable initial attribute table to use.

Method Detail

createStandardAttributeTable

protected Hashtable createStandardAttributeTable(Map parameters)
Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, and messageDigest. If the constructor using an AttributeTable was used, entries in it for contentType, signingTime, and messageDigest will override the generated ones.

Parameters: parameters source parameters for table generation.

Returns: a filled in Hashtable of attributes.

getAttributes

public AttributeTable getAttributes(Map parameters)

Parameters: parameters source parameters

Returns: the populated attribute table