Class DefaultAuthenticatedAttributeTableGenerator

java.lang.Object
org.bouncycastle.cms.DefaultAuthenticatedAttributeTableGenerator
All Implemented Interfaces:
CMSAttributeTableGenerator

public class DefaultAuthenticatedAttributeTableGenerator extends Object implements CMSAttributeTableGenerator
Default authenticated attributes generator.
  • 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

      protected Hashtable createStandardAttributeTable(Map parameters)
      Create a standard attribute table from the passed in parameters - this will normally include contentType, messageDigest, and CMS algorithm protection. If the constructor using an AttributeTable was used, entries in it for contentType and messageDigest will override the generated ones. The CMS algorithm protection attribute (RFC 6211) is always generated from the digest and MAC algorithms actually used, replacing any entry for it in the AttributeTable, as its values must match those of the AuthenticatedData.
      Parameters:
      parameters - source parameters for table generation.
      Returns:
      a filled in Hashtable of attributes.
    • getAttributes

      public org.bouncycastle.asn1.cms.AttributeTable getAttributes(Map parameters)
      Specified by:
      getAttributes in interface CMSAttributeTableGenerator
      Parameters:
      parameters - source parameters
      Returns:
      the populated attribute table