Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class DefaultSignedAttributeTableGenerator

extends Object
implements CMSAttributeTableGenerator
Class Inheritance
All Implemented Interfaces
org.bouncycastle.cms.CMSAttributeTableGenerator
Imports
java.util.Date, .Enumeration, .Hashtable, .Map, org.bouncycastle.asn1.ASN1ObjectIdentifier, .DEROctetString, .DERSet, org.bouncycastle.asn1.cms.Attribute, .AttributeTable, .CMSAlgorithmProtection, .CMSAttributes, .Time, org.bouncycastle.asn1.x509.AlgorithmIdentifier

Default signed attributes generator.

Field Summary

Modifier and TypeField and Description
private final Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
public
DefaultSignedAttributeTableGenerator()

Initialise to use all defaults

public
DefaultSignedAttributeTableGenerator(AttributeTable
initial attribute table to use.
attributeTable
)

Initialise with some extra attributes or overrides.

Method Summary

Modifier and TypeMethod and Description
private static Hashtable<K, V>
copyHashTable(Hashtable<K, V> paramsMap)

protected Hashtable<K, V>

Returns:

a filled in Hashtable of attributes.
createStandardAttributeTable
(Map<K, V>
source parameters for table generation.
parameters
)

Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, messageDigest, and CMS algorithm protection.

public AttributeTable

Returns:

the populated attribute table
getAttributes
(Map<K, V>
source parameters
parameters
)

Implements org.bouncycastle.cms.CMSAttributeTableGenerator.getAttributes.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

tableback to summary
private final Hashtable<K, V> table

Constructor Detail

DefaultSignedAttributeTableGeneratorback to summary
public DefaultSignedAttributeTableGenerator()

Initialise to use all defaults

DefaultSignedAttributeTableGeneratorback to summary
public DefaultSignedAttributeTableGenerator(AttributeTable attributeTable)

Initialise with some extra attributes or overrides.

Parameters
attributeTable:AttributeTable

initial attribute table to use.

Method Detail

copyHashTableback to summary
private static Hashtable<K, V> copyHashTable(Hashtable<K, V> paramsMap)
createStandardAttributeTableback to summary
protected Hashtable<K, V> createStandardAttributeTable(Map<K, V> parameters)

Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, messageDigest, and CMS algorithm protection. If the constructor using an AttributeTable was used, entries in it for contentType, signingTime, and messageDigest will override the generated ones.

Parameters
parameters:Map<K, V>

source parameters for table generation.

Returns:Hashtable<K, V>

a filled in Hashtable of attributes.

getAttributesback to summary
public AttributeTable getAttributes(Map<K, V> parameters)

Implements org.bouncycastle.cms.CMSAttributeTableGenerator.getAttributes.

Parameters
parameters:Map<K, V>

source parameters

Returns:AttributeTable

the populated attribute table