Top Description Fields Constructors Methods
org.bouncycastle.cms

public Class DefaultAuthenticatedAttributeTableGenerator

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

Default authenticated attributes generator.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
DefaultAuthenticatedAttributeTableGenerator()

Initialise to use all defaults

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

Initialise with some extra attributes or overrides.

Method Summary

Modifier and TypeMethod and Description
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 and messageDigest.

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

DefaultAuthenticatedAttributeTableGeneratorback to summary
public DefaultAuthenticatedAttributeTableGenerator()

Initialise to use all defaults

DefaultAuthenticatedAttributeTableGeneratorback to summary
public DefaultAuthenticatedAttributeTableGenerator(AttributeTable attributeTable)

Initialise with some extra attributes or overrides.

Parameters
attributeTable:AttributeTable

initial attribute table to use.

Method Detail

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 and messageDigest. If the constructor using an AttributeTable was used, entries in it for contentType 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