Package org.bouncycastle.cms
Class DefaultSignedAttributeTableGenerator
- java.lang.Object
-
- org.bouncycastle.cms.DefaultSignedAttributeTableGenerator
-
- All Implemented Interfaces:
CMSAttributeTableGenerator
public class DefaultSignedAttributeTableGenerator extends java.lang.Object implements CMSAttributeTableGenerator
Default signed 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
Constructors Constructor Description DefaultSignedAttributeTableGenerator()
Initialise to use all defaultsDefaultSignedAttributeTableGenerator(org.bouncycastle.asn1.cms.AttributeTable attributeTable)
Initialise with some extra attributes or overrides.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Hashtable
createStandardAttributeTable(java.util.Map parameters)
Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, messageDigest, and CMS algorithm protection.org.bouncycastle.asn1.cms.AttributeTable
getAttributes(java.util.Map parameters)
-
-
-
Constructor Detail
-
DefaultSignedAttributeTableGenerator
public DefaultSignedAttributeTableGenerator()
Initialise to use all defaults
-
DefaultSignedAttributeTableGenerator
public DefaultSignedAttributeTableGenerator(org.bouncycastle.asn1.cms.AttributeTable attributeTable)
Initialise with some extra attributes or overrides.- Parameters:
attributeTable
- initial attribute table to use.
-
-
Method Detail
-
createStandardAttributeTable
protected java.util.Hashtable createStandardAttributeTable(java.util.Map 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
- source parameters for table generation.- Returns:
- a filled in Hashtable of attributes.
-
getAttributes
public org.bouncycastle.asn1.cms.AttributeTable getAttributes(java.util.Map parameters)
- Specified by:
getAttributes
in interfaceCMSAttributeTableGenerator
- Parameters:
parameters
- source parameters- Returns:
- the populated attribute table
-
-