Package org.bouncycastle.cms
Class DefaultAuthenticatedAttributeTableGenerator
java.lang.Object
org.bouncycastle.cms.DefaultAuthenticatedAttributeTableGenerator
- All Implemented Interfaces:
CMSAttributeTableGenerator
public class DefaultAuthenticatedAttributeTableGenerator
extends Object
implements CMSAttributeTableGenerator
Default authenticated attributes generator.
-
Field Summary
Fields inherited from interface org.bouncycastle.cms.CMSAttributeTableGenerator
CONTENT_TYPE, DIGEST, DIGEST_ALGORITHM_IDENTIFIER, MAC_ALGORITHM_IDENTIFIER, SIGNATURE, SIGNATURE_ALGORITHM_IDENTIFIER
-
Constructor Summary
ConstructorsConstructorDescriptionInitialise to use all defaultsDefaultAuthenticatedAttributeTableGenerator
(org.bouncycastle.asn1.cms.AttributeTable attributeTable) Initialise with some extra attributes or overrides. -
Method Summary
Modifier and TypeMethodDescriptionprotected Hashtable
createStandardAttributeTable
(Map parameters) Create a standard attribute table from the passed in parameters - this will normally include contentType and messageDigest.org.bouncycastle.asn1.cms.AttributeTable
getAttributes
(Map parameters)
-
Constructor Details
-
DefaultAuthenticatedAttributeTableGenerator
public DefaultAuthenticatedAttributeTableGenerator()Initialise to use all defaults -
DefaultAuthenticatedAttributeTableGenerator
public DefaultAuthenticatedAttributeTableGenerator(org.bouncycastle.asn1.cms.AttributeTable attributeTable) Initialise with some extra attributes or overrides.- Parameters:
attributeTable
- initial attribute table to use.
-
-
Method Details
-
createStandardAttributeTable
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
- source parameters for table generation.- Returns:
- a filled in Hashtable of attributes.
-
getAttributes
- Specified by:
getAttributes
in interfaceCMSAttributeTableGenerator
- Parameters:
parameters
- source parameters- Returns:
- the populated attribute table
-